Skip to content

Commit

Permalink
feat: -# のヘッダーに対応 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Jul 14, 2024
1 parent ccc2782 commit fe16ef0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/kotlin/com/jaoafa/vcspeaker/tts/markdown/Line.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ enum class LineEffect(val regex: Regex) {
Heading1(Regex("^#$")),
Heading2(Regex("^##$")),
Heading3(Regex("^###$")),
SmallHeading(Regex("^-#$")),
Quote(Regex("^>$")),
BulletList(Regex("^[*-]$")),
NumberedList(Regex("^\\d+\\.$"))
Expand Down
3 changes: 2 additions & 1 deletion src/test/kotlin/processors/MarkdownFormatProcessorTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ class MarkdownFormatProcessorTest : FunSpec({
#### Header 4
##### Header 5
###### Header 6
-# Small header
- List item 1
- List item 2
- List item 3
Expand All @@ -161,7 +162,7 @@ class MarkdownFormatProcessorTest : FunSpec({
""".trimIndent(), voice
)

processedText shouldBe "Header 1 Header 2 Header 3 #### Header 4 ##### Header 5 ###### Header 6 List item 1 List item 2 List item 3 Numbered list item 1 Numbered list item 2 Numbered list item 3 Blockquote Code"
processedText shouldBe "Header 1 Header 2 Header 3 #### Header 4 ##### Header 5 ###### Header 6 Small header List item 1 List item 2 List item 3 Numbered list item 1 Numbered list item 2 Numbered list item 3 Blockquote Code"
processedVoice shouldBe voice
}

Expand Down

0 comments on commit fe16ef0

Please sign in to comment.