diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..8a806e8 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,7 @@ +Copyright 2025 H.Nentjes + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build.gradle.kts b/build.gradle.kts index 2890f7b..4943a0d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "nl.astraeus" -version = "1.0.0" +version = "1.0.1" repositories { mavenCentral() diff --git a/src/commonMain/kotlin/nl/astraeus/markdown/parser/Markdown.kt b/src/commonMain/kotlin/nl/astraeus/markdown/parser/Markdown.kt index 4a0cec1..d4d9d49 100644 --- a/src/commonMain/kotlin/nl/astraeus/markdown/parser/Markdown.kt +++ b/src/commonMain/kotlin/nl/astraeus/markdown/parser/Markdown.kt @@ -1,4 +1,4 @@ -package nl.astraeus.wiki.parser +package nl.astraeus.markdown.parser sealed class MarkdownPart { diff --git a/src/commonMain/kotlin/nl/astraeus/markdown/parser/Paragraph.kt b/src/commonMain/kotlin/nl/astraeus/markdown/parser/Paragraph.kt index bafe741..86cace1 100644 --- a/src/commonMain/kotlin/nl/astraeus/markdown/parser/Paragraph.kt +++ b/src/commonMain/kotlin/nl/astraeus/markdown/parser/Paragraph.kt @@ -1,6 +1,6 @@ -package nl.astraeus.wiki.parser +package nl.astraeus.markdown.parser -import nl.astraeus.wiki.parser.MarkdownPart.ParagraphPart.* +import nl.astraeus.markdown.parser.MarkdownPart.ParagraphPart.* private enum class ParType { TEXT, diff --git a/src/commonMain/kotlin/nl/astraeus/markdown/parser/Parser.kt b/src/commonMain/kotlin/nl/astraeus/markdown/parser/Parser.kt index 8bb6c11..70f5574 100644 --- a/src/commonMain/kotlin/nl/astraeus/markdown/parser/Parser.kt +++ b/src/commonMain/kotlin/nl/astraeus/markdown/parser/Parser.kt @@ -1,4 +1,4 @@ -package nl.astraeus.wiki.parser +package nl.astraeus.markdown.parser enum class MarkdownType { CODE, diff --git a/src/commonMain/kotlin/nl/astraeus/markdown/parser/Table.kt b/src/commonMain/kotlin/nl/astraeus/markdown/parser/Table.kt index d44741d..32c3106 100644 --- a/src/commonMain/kotlin/nl/astraeus/markdown/parser/Table.kt +++ b/src/commonMain/kotlin/nl/astraeus/markdown/parser/Table.kt @@ -1,4 +1,4 @@ -package nl.astraeus.wiki.parser +package nl.astraeus.markdown.parser fun parseTable(text: String): List { val lines = text.lines().map { it.trim() }.filter { it.isNotEmpty() } diff --git a/src/commonTest/kotlin/nl/astraeus/markdown/parser/ParseTest.kt b/src/commonTest/kotlin/nl/astraeus/markdown/parser/ParseTest.kt index bca4e15..4388085 100644 --- a/src/commonTest/kotlin/nl/astraeus/markdown/parser/ParseTest.kt +++ b/src/commonTest/kotlin/nl/astraeus/markdown/parser/ParseTest.kt @@ -1,7 +1,5 @@ package nl.astraeus.markdown.parser -import nl.astraeus.wiki.parser.MarkdownPart -import nl.astraeus.wiki.parser.markdown import kotlin.test.Test class ParseTest { diff --git a/src/commonTest/kotlin/nl/astraeus/markdown/parser/TestParagraph.kt b/src/commonTest/kotlin/nl/astraeus/markdown/parser/TestParagraph.kt index 23ca8cc..8a6236c 100644 --- a/src/commonTest/kotlin/nl/astraeus/markdown/parser/TestParagraph.kt +++ b/src/commonTest/kotlin/nl/astraeus/markdown/parser/TestParagraph.kt @@ -1,7 +1,5 @@ package nl.astraeus.markdown.parser -import nl.astraeus.wiki.parser.MarkdownPart -import nl.astraeus.wiki.parser.parseParagraph import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue