diff --git a/README.md b/README.md index 5debb9a..5a91f7b 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,57 @@ # MineMark Java Markdown Rendering library - \ No newline at end of file + + +## Usage +MineMark is build in a modular system, `minemark-core` is the hearth of everything, it is responsible for parsing +the markdown and generating a layout for it. Then you need a rendering implementation to actually render the markdown. +Currently, only an elementa render system is provided, but it is relatively fast to create your own rendering +implementation if you wish to do that. + +Adding MineMark as a dependency: +```kt +repositories { + maven("https://maven.dediamondpro.dev/releases") +} + +dependencies { + // Add the core as a dependency + implementation("dev.dediamondpro:minemark-core:1.0.0") + // Add elementa rendering implementation as a dependency + implementation("dev.dediamondpro:minemark-elementa:1.0.0") +} +``` + +How you render a markdown element will differ from one rendering implementation to another, here is an example of how +you would do it with the elementa rendering implementation: +```kt +MineMarkComponent("This *is* **were** you input your markdown!").constrain { + x = 0.pixels() + y = 0.pixels() + width = 600.pixels() +} childOf window +``` + +## Creating your own rendering implementation +To create your own rendering implementation, you first have to implement the rendering of the elements you want to +support. You can choose what elements you implement, the only requirement is that **you have to provide a text element**. +To implement an element, you have to extend its abstract form, for an example for each element I would recommend you +look at the elementa implementation as a reference. An element takes 2 type variables, the first one (S) is the style, +so you have to create a class that implements the `Style` interface. The second can be any class, it is given to your +elements at render time. If you do not wish to use this you can just set it to be an `Object`. + +Once you implemented the elements you want, you have to register them in a core. You can do this as follows: +```java +MineMarkCore core = MineMarkCore.builder() + // Set the text element to your text element + .setTextElement(MyTextElement) + // Set the image element to your image element + .addElement(Elements.IMAGE, MyImageElement) + // Set an element with the html tag "myHtmlTag" to MyElement + .addElement(Arrays.asList("myHtmlTag"), MyElement) + .build(); +``` + +Then you have to call `core.parse(myStyle, markdown)` to parse the markdown, this will return a `MineMarkElement`. +This element has a `draw`, `beforeDraw` and `onMouseClick` method that should be called by your rendering implementation. \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index ddbfcde..75a1030 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,10 +1,27 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + plugins { id("java-library") id("maven-publish") } group = "dev.dediamondpro" -version = "1.0-SNAPSHOT112" +version = "1.0.0" repositories { mavenCentral() diff --git a/elementa/build.gradle.kts b/elementa/build.gradle.kts index 074c5ae..9ca78fa 100644 --- a/elementa/build.gradle.kts +++ b/elementa/build.gradle.kts @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + plugins { // Lowest kotlin version that elementa supports kotlin("jvm") version "1.6.10" diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/MineMarkComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/MineMarkComponent.kt index 05232a6..b5f9102 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/MineMarkComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/MineMarkComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa import dev.dediamondpro.minemark.MineMarkCore @@ -13,6 +30,10 @@ import gg.essential.universal.UMatrixStack import org.commonmark.ext.gfm.strikethrough.StrikethroughExtension import org.commonmark.ext.gfm.tables.TablesExtension + +/** + * A component to rendering markdown powered by MineMark + */ class MineMarkComponent( markdown: String, style: MarkdownStyle = MarkdownStyle(), diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownBlockquoteComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownBlockquoteComponent.kt index 0a0fc7c..896e54f 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownBlockquoteComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownBlockquoteComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.elements import dev.dediamondpro.minemark.LayoutStyle diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownCodeBlockComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownCodeBlockComponent.kt index ef94742..4f16b4e 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownCodeBlockComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownCodeBlockComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.elements import dev.dediamondpro.minemark.LayoutStyle diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownHeadingComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownHeadingComponent.kt index 6a6277c..5f35050 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownHeadingComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownHeadingComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.elements import dev.dediamondpro.minemark.LayoutStyle diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownHorizontalRuleComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownHorizontalRuleComponent.kt index cac96ae..9816e8b 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownHorizontalRuleComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownHorizontalRuleComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.elements import dev.dediamondpro.minemark.LayoutStyle diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownImageComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownImageComponent.kt index 070a43d..f7f0c5a 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownImageComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownImageComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.elements import dev.dediamondpro.minemark.LayoutStyle diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownListElementComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownListElementComponent.kt index dabfac6..023c9fe 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownListElementComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownListElementComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.elements import dev.dediamondpro.minemark.LayoutData diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownTableCellComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownTableCellComponent.kt index b7c8ece..db6508c 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownTableCellComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownTableCellComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.elements import dev.dediamondpro.minemark.LayoutStyle diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownTextComponent.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownTextComponent.kt index 77b301f..b61aa98 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownTextComponent.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/elements/MarkdownTextComponent.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.elements import dev.dediamondpro.minemark.LayoutData diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/style/MarkdownStyle.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/style/MarkdownStyle.kt index fd74812..9b47f9e 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/style/MarkdownStyle.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/style/MarkdownStyle.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.style import dev.dediamondpro.minemark.elementa.util.ElementaBrowserProvider diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/util/ElementaBrowserProvider.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/util/ElementaBrowserProvider.kt index 922d372..a592bd7 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/util/ElementaBrowserProvider.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/util/ElementaBrowserProvider.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.util import dev.dediamondpro.minemark.providers.BrowserProvider diff --git a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/util/EmptyImage.kt b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/util/EmptyImage.kt index 4f3d158..b8d4c3b 100644 --- a/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/util/EmptyImage.kt +++ b/elementa/src/main/kotlin/dev/dediamondpro/minemark/elementa/util/EmptyImage.kt @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elementa.util import gg.essential.elementa.components.image.ImageProvider diff --git a/settings.gradle.kts b/settings.gradle.kts index e10b0ac..00fc8e4 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + dependencyResolutionManagement { versionCatalogs { create("libs") diff --git a/src/main/java/dev/dediamondpro/minemark/LayoutData.java b/src/main/java/dev/dediamondpro/minemark/LayoutData.java index b2e0e09..98c2ded 100644 --- a/src/main/java/dev/dediamondpro/minemark/LayoutData.java +++ b/src/main/java/dev/dediamondpro/minemark/LayoutData.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark; import java.util.ArrayList; diff --git a/src/main/java/dev/dediamondpro/minemark/LayoutStyle.java b/src/main/java/dev/dediamondpro/minemark/LayoutStyle.java index 5ec64af..af89fdf 100644 --- a/src/main/java/dev/dediamondpro/minemark/LayoutStyle.java +++ b/src/main/java/dev/dediamondpro/minemark/LayoutStyle.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark; import dev.dediamondpro.minemark.style.Style; diff --git a/src/main/java/dev/dediamondpro/minemark/MineMarkCore.java b/src/main/java/dev/dediamondpro/minemark/MineMarkCore.java index e03fdbc..d590971 100644 --- a/src/main/java/dev/dediamondpro/minemark/MineMarkCore.java +++ b/src/main/java/dev/dediamondpro/minemark/MineMarkCore.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark; import dev.dediamondpro.minemark.elements.MineMarkElement; diff --git a/src/main/java/dev/dediamondpro/minemark/MineMarkCoreBuilder.java b/src/main/java/dev/dediamondpro/minemark/MineMarkCoreBuilder.java index 0a6c96d..9447f17 100644 --- a/src/main/java/dev/dediamondpro/minemark/MineMarkCoreBuilder.java +++ b/src/main/java/dev/dediamondpro/minemark/MineMarkCoreBuilder.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark; import dev.dediamondpro.minemark.elements.Elements; diff --git a/src/main/java/dev/dediamondpro/minemark/MineMarkHtmlParser.java b/src/main/java/dev/dediamondpro/minemark/MineMarkHtmlParser.java index e54a24d..6cbcc43 100644 --- a/src/main/java/dev/dediamondpro/minemark/MineMarkHtmlParser.java +++ b/src/main/java/dev/dediamondpro/minemark/MineMarkHtmlParser.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark; import dev.dediamondpro.minemark.elements.Element; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/BasicElement.java b/src/main/java/dev/dediamondpro/minemark/elements/BasicElement.java index 6294f8b..192ef53 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/BasicElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/BasicElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/ChildBasedElement.java b/src/main/java/dev/dediamondpro/minemark/elements/ChildBasedElement.java index 2c989aa..5cf7d37 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/ChildBasedElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/ChildBasedElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/ChildMovingElement.java b/src/main/java/dev/dediamondpro/minemark/elements/ChildMovingElement.java index b8bde90..4e490d4 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/ChildMovingElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/ChildMovingElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/Element.java b/src/main/java/dev/dediamondpro/minemark/elements/Element.java index 7890d8d..17041f8 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/Element.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/Element.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/Elements.java b/src/main/java/dev/dediamondpro/minemark/elements/Elements.java index 37346a4..6a69349 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/Elements.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/Elements.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements; import java.util.Arrays; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/Inline.java b/src/main/java/dev/dediamondpro/minemark/elements/Inline.java index a524bc7..a305070 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/Inline.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/Inline.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/MineMarkElement.java b/src/main/java/dev/dediamondpro/minemark/elements/MineMarkElement.java index 4299074..7b132e7 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/MineMarkElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/MineMarkElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/BlockQuoteElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/BlockQuoteElement.java index 5869000..cbdd816 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/BlockQuoteElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/BlockQuoteElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/CodeBlockElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/CodeBlockElement.java index f4474a2..bc43d93 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/CodeBlockElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/CodeBlockElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/HorizontalRuleElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/HorizontalRuleElement.java index 23f104e..f4485f0 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/HorizontalRuleElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/HorizontalRuleElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/ImageElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/ImageElement.java index c58b4b9..7f546a6 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/ImageElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/ImageElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/LinkElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/LinkElement.java index 1f77f76..1dd7d8d 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/LinkElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/LinkElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/ParagraphElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/ParagraphElement.java index 0315df3..2d531db 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/ParagraphElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/ParagraphElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/TextElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/TextElement.java index 2393751..65c9259 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/TextElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/TextElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/AlignmentElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/AlignmentElement.java index 10e2bea..bf5f9a8 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/AlignmentElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/AlignmentElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl.formatting; import dev.dediamondpro.minemark.LayoutStyle; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/FormattingElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/FormattingElement.java index c894628..4473b16 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/FormattingElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/FormattingElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl.formatting; import dev.dediamondpro.minemark.LayoutStyle; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/HeadingElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/HeadingElement.java index 37edd05..f108fe2 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/HeadingElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/formatting/HeadingElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl.formatting; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/list/ListElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/list/ListElement.java index 2d00966..95af644 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/list/ListElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/list/ListElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl.list; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/list/ListHolderElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/list/ListHolderElement.java index e1af9d6..122bf64 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/list/ListHolderElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/list/ListHolderElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl.list; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableCellElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableCellElement.java index f520c90..d18872c 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableCellElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableCellElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl.table; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableHolderElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableHolderElement.java index c7e130c..b71c38e 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableHolderElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableHolderElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl.table; import dev.dediamondpro.minemark.LayoutStyle; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableRowElement.java b/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableRowElement.java index 2fa1af6..ecf1f19 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableRowElement.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/impl/table/TableRowElement.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.impl.table; import dev.dediamondpro.minemark.LayoutData; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/loaders/ElementLoader.java b/src/main/java/dev/dediamondpro/minemark/elements/loaders/ElementLoader.java index 3f6a4f1..53a6070 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/loaders/ElementLoader.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/loaders/ElementLoader.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.loaders; diff --git a/src/main/java/dev/dediamondpro/minemark/elements/loaders/TextElementLoader.java b/src/main/java/dev/dediamondpro/minemark/elements/loaders/TextElementLoader.java index 8178693..15e1004 100644 --- a/src/main/java/dev/dediamondpro/minemark/elements/loaders/TextElementLoader.java +++ b/src/main/java/dev/dediamondpro/minemark/elements/loaders/TextElementLoader.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.elements.loaders; diff --git a/src/main/java/dev/dediamondpro/minemark/providers/BrowserProvider.java b/src/main/java/dev/dediamondpro/minemark/providers/BrowserProvider.java index 962efe0..4307005 100644 --- a/src/main/java/dev/dediamondpro/minemark/providers/BrowserProvider.java +++ b/src/main/java/dev/dediamondpro/minemark/providers/BrowserProvider.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.providers; /** diff --git a/src/main/java/dev/dediamondpro/minemark/providers/DefaultBrowserProvider.java b/src/main/java/dev/dediamondpro/minemark/providers/DefaultBrowserProvider.java index 324e364..f41a19b 100644 --- a/src/main/java/dev/dediamondpro/minemark/providers/DefaultBrowserProvider.java +++ b/src/main/java/dev/dediamondpro/minemark/providers/DefaultBrowserProvider.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.providers; import java.net.URI; diff --git a/src/main/java/dev/dediamondpro/minemark/providers/DefaultImageProvider.java b/src/main/java/dev/dediamondpro/minemark/providers/DefaultImageProvider.java index 7c9204f..a613aab 100644 --- a/src/main/java/dev/dediamondpro/minemark/providers/DefaultImageProvider.java +++ b/src/main/java/dev/dediamondpro/minemark/providers/DefaultImageProvider.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.providers; import javax.imageio.ImageIO; diff --git a/src/main/java/dev/dediamondpro/minemark/providers/ImageProvider.java b/src/main/java/dev/dediamondpro/minemark/providers/ImageProvider.java index 74afa10..3ac5b03 100644 --- a/src/main/java/dev/dediamondpro/minemark/providers/ImageProvider.java +++ b/src/main/java/dev/dediamondpro/minemark/providers/ImageProvider.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.providers; import java.util.function.Consumer; diff --git a/src/main/java/dev/dediamondpro/minemark/style/BlockquoteStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/BlockquoteStyleConfig.java index 6fbc4f5..e9e4883 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/BlockquoteStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/BlockquoteStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; import java.awt.*; diff --git a/src/main/java/dev/dediamondpro/minemark/style/CodeBlockStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/CodeBlockStyleConfig.java index 2e300e0..8943901 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/CodeBlockStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/CodeBlockStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; import java.awt.*; diff --git a/src/main/java/dev/dediamondpro/minemark/style/HeadingLevelStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/HeadingLevelStyleConfig.java index a4d2197..99cebad 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/HeadingLevelStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/HeadingLevelStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; diff --git a/src/main/java/dev/dediamondpro/minemark/style/HeadingStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/HeadingStyleConfig.java index db56cb4..627a6c8 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/HeadingStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/HeadingStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; public class HeadingStyleConfig { diff --git a/src/main/java/dev/dediamondpro/minemark/style/HorizontalRuleStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/HorizontalRuleStyleConfig.java index 5b12d8a..f672592 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/HorizontalRuleStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/HorizontalRuleStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; import java.awt.*; diff --git a/src/main/java/dev/dediamondpro/minemark/style/ImageStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/ImageStyleConfig.java index 3778642..14fd500 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/ImageStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/ImageStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; import dev.dediamondpro.minemark.providers.ImageProvider; diff --git a/src/main/java/dev/dediamondpro/minemark/style/LinkStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/LinkStyleConfig.java index 1fa048c..85f8a09 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/LinkStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/LinkStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; import dev.dediamondpro.minemark.providers.BrowserProvider; diff --git a/src/main/java/dev/dediamondpro/minemark/style/ListStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/ListStyleConfig.java index a4917fc..be10db3 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/ListStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/ListStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; public class ListStyleConfig { diff --git a/src/main/java/dev/dediamondpro/minemark/style/ParagraphStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/ParagraphStyleConfig.java index fb48248..0e9c058 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/ParagraphStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/ParagraphStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; public class ParagraphStyleConfig { diff --git a/src/main/java/dev/dediamondpro/minemark/style/Style.java b/src/main/java/dev/dediamondpro/minemark/style/Style.java index 566257c..c5a9f1d 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/Style.java +++ b/src/main/java/dev/dediamondpro/minemark/style/Style.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; public interface Style { diff --git a/src/main/java/dev/dediamondpro/minemark/style/TableStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/TableStyleConfig.java index 2fc3eed..a3bee1f 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/TableStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/TableStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; import java.awt.*; diff --git a/src/main/java/dev/dediamondpro/minemark/style/TextStyleConfig.java b/src/main/java/dev/dediamondpro/minemark/style/TextStyleConfig.java index 3f60a3a..7f9699d 100644 --- a/src/main/java/dev/dediamondpro/minemark/style/TextStyleConfig.java +++ b/src/main/java/dev/dediamondpro/minemark/style/TextStyleConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.style; import java.awt.*; diff --git a/src/main/java/dev/dediamondpro/minemark/utils/MouseButton.java b/src/main/java/dev/dediamondpro/minemark/utils/MouseButton.java index 6c528f4..bc9e3ba 100644 --- a/src/main/java/dev/dediamondpro/minemark/utils/MouseButton.java +++ b/src/main/java/dev/dediamondpro/minemark/utils/MouseButton.java @@ -1,3 +1,20 @@ +/* + * This file is part of MineMark + * Copyright (C) 2024 DeDiamondPro + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License Version 3 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + */ + package dev.dediamondpro.minemark.utils; public enum MouseButton {