Skip to content

Commit 7f21ab9

Browse files
committed
⭐ feat: type fix
1 parent 2945c70 commit 7f21ab9

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ This README\.MD was generated using kmarkdown\. [Check it out\!](src/jvmTest/kot
88

99
### Changelog
1010

11+
- 0\.2\.2
12+
- Italic, GFMStrikethrough element type is fixed\.
1113
- 0\.2\.1
1214
- Block\.BlockDSL and MarkdownDSL constructor is now public\.
1315
- 0\.2\.0

README_ko.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ kmarkdown은 **잘 테스트된**, **순수한 코틀린** 마크다운 라이
88

99
### 변경 내역
1010

11+
- 0\.2\.2
12+
- Italic, GFMStrikethrough element type 수정
1113
- 0\.2\.1
1214
- Block\.BlockDSL과 MarkdownDSL 생성자는 이제 public입니다\.
1315
- 0\.2\.0

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group = "io.github.devngho"
11-
version = "0.2.1"
11+
version = "0.2.2"
1212

1313
repositories {
1414
mavenCentral()

src/commonMain/kotlin/io/github/devngho/kmarkdown/flavor/common/Italic.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import io.github.devngho.kmarkdown.flavor.MarkdownElement
77
import io.github.devngho.kmarkdown.flavor.MarkdownElementDescriptor
88

99
@MarkdownDSLMarker
10-
data class Italic(var element: MarkdownElement): MarkdownElement {
10+
data class Italic(var element: Block): MarkdownElement {
1111
override val descriptor: MarkdownElementDescriptor<out MarkdownElement> = Text
1212

1313
override fun encode(): String = "*${element.encode()}*"

src/commonMain/kotlin/io/github/devngho/kmarkdown/flavor/gfm/GFMStrikethrough.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import io.github.devngho.kmarkdown.flavor.*
66
import io.github.devngho.kmarkdown.flavor.common.Block
77

88
@MarkdownDSLMarker
9-
data class GFMStrikethrough(var element: MarkdownElement): MarkdownElement {
9+
data class GFMStrikethrough(var element: Block): MarkdownElement {
1010
override val descriptor: MarkdownElementDescriptor<out MarkdownElement> = GFMStrikethrough
1111

1212
override fun encode(): String = "~~${element.encode()}~~"
@@ -19,7 +19,7 @@ data class GFMStrikethrough(var element: MarkdownElement): MarkdownElement {
1919
override val flavor: Flavor = GFMFlavor
2020

2121
override fun convertToFlavor(element: GFMStrikethrough, flavor: Flavor): MarkdownElement {
22-
return GFMStrikethrough(element)
22+
return GFMStrikethrough(element.element)
2323
}
2424

2525
override fun convertFromElement(element: MarkdownElement): GFMStrikethrough? = null

src/jvmTest/kotlin/io/github/devngho/kmarkdown/Readme.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ class Readme: StringSpec({
3434

3535
+heading(3, "Changelog") {
3636
+list(List.ListStyle.UNORDERED) {
37+
item { +"0.2.2" }
38+
list(List.ListStyle.UNORDERED) {
39+
item { +"Italic, GFMStrikethrough element type is fixed." }
40+
}
41+
3742
item { +"0.2.1" }
3843
list(List.ListStyle.UNORDERED) {
3944
item { +"Block.BlockDSL and MarkdownDSL constructor is now public." }
@@ -374,6 +379,11 @@ class Readme: StringSpec({
374379

375380
+heading(3, "변경 내역") {
376381
+list(List.ListStyle.UNORDERED) {
382+
item { +"0.2.2" }
383+
list(List.ListStyle.UNORDERED) {
384+
item { +"Italic, GFMStrikethrough element type 수정" }
385+
}
386+
377387
item { +"0.2.1" }
378388
list(List.ListStyle.UNORDERED) {
379389
item { +"Block.BlockDSL과 MarkdownDSL 생성자는 이제 public입니다." }

0 commit comments

Comments
 (0)