Refactor package structure to align with Markdown parser focus, update project version to 1.0.1, and add MIT license file.

This commit is contained in:
2025-12-07 19:40:25 +01:00
parent 63c24f6355
commit bc7cd5fb97
8 changed files with 13 additions and 10 deletions

7
LICENSE.txt Normal file
View File

@@ -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.

View File

@@ -8,7 +8,7 @@ plugins {
}
group = "nl.astraeus"
version = "1.0.0"
version = "1.0.1"
repositories {
mavenCentral()

View File

@@ -1,4 +1,4 @@
package nl.astraeus.wiki.parser
package nl.astraeus.markdown.parser
sealed class MarkdownPart {

View File

@@ -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,

View File

@@ -1,4 +1,4 @@
package nl.astraeus.wiki.parser
package nl.astraeus.markdown.parser
enum class MarkdownType {
CODE,

View File

@@ -1,4 +1,4 @@
package nl.astraeus.wiki.parser
package nl.astraeus.markdown.parser
fun parseTable(text: String): List<MarkdownPart> {
val lines = text.lines().map { it.trim() }.filter { it.isNotEmpty() }

View File

@@ -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 {

View File

@@ -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