Skip to content

Commit 2945c70

Browse files
committed
⭐ feat: Block.BlockDSL and MarkdownDSL constructor is now public
1 parent 313691a commit 2945c70

File tree

6 files changed

+23
-9
lines changed

6 files changed

+23
-9
lines changed

README.md

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

99
### Changelog
1010

11+
- 0\.2\.1
12+
- Block\.BlockDSL and MarkdownDSL constructor is now public\.
1113
- 0\.2\.0
12-
- How to add elements in MarkdownDSL is changed\.
13-
- TextStyle is just a MarkdownElement now\.
14+
- How to add elements in MarkdownDSL is changed\.
15+
- TextStyle is just a MarkdownElement now\.
1416
- 0\.1\.0
15-
- Initial release
17+
- Initial release
1618

1719
### Installation
1820

README_ko.md

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

99
### 변경 내역
1010

11+
- 0\.2\.1
12+
- Block\.BlockDSL과 MarkdownDSL 생성자는 이제 public입니다\.
1113
- 0\.2\.0
12-
- MarkdownDSL에 요소를 추가하는 방법이 변경되었습니다\.
13-
- TextStyle는 이제 일반 MarkdownElement입니다\.
14+
- MarkdownDSL에 요소를 추가하는 방법이 변경되었습니다\.
15+
- TextStyle는 이제 일반 MarkdownElement입니다\.
1416
- 0\.1\.0
15-
- 첫 릴리즈
17+
- 첫 릴리즈
1618

1719
### 설치
1820

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.0"
11+
version = "0.2.1"
1212

1313
repositories {
1414
mavenCentral()

src/commonMain/kotlin/io/github/devngho/kmarkdown/builder/MarkdownDSL.kt

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

88
@MarkdownDSLMarker
9-
class MarkdownDSL internal constructor(val flavor: Flavor) {
9+
class MarkdownDSL(val flavor: Flavor) {
1010
val elements = mutableListOf<MarkdownElement>()
1111

1212
fun add(element: MarkdownElement) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ data class Block(val children: kotlin.collections.List<MarkdownElement>): Markdo
1212
override val descriptor: MarkdownElementDescriptor<out MarkdownElement> = Block
1313

1414
@MarkdownDSLMarker
15-
class BlockDSL internal constructor(val flavor: Flavor) {
15+
class BlockDSL(val flavor: Flavor) {
1616
private val elements = mutableListOf<MarkdownElement>()
1717

1818
operator fun String.unaryPlus() {

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.1" }
38+
list(List.ListStyle.UNORDERED) {
39+
item { +"Block.BlockDSL and MarkdownDSL constructor is now public." }
40+
}
41+
3742
item { +"0.2.0" }
3843
list(List.ListStyle.UNORDERED) {
3944
item { +"How to add elements in MarkdownDSL is changed." }
@@ -369,6 +374,11 @@ class Readme: StringSpec({
369374

370375
+heading(3, "변경 내역") {
371376
+list(List.ListStyle.UNORDERED) {
377+
item { +"0.2.1" }
378+
list(List.ListStyle.UNORDERED) {
379+
item { +"Block.BlockDSL과 MarkdownDSL 생성자는 이제 public입니다." }
380+
}
381+
372382
item { +"0.2.0" }
373383
list(List.ListStyle.UNORDERED) {
374384
item { +"MarkdownDSL에 요소를 추가하는 방법이 변경되었습니다." }

0 commit comments

Comments
 (0)