diff options
Diffstat (limited to 'src')
6 files changed, 108 insertions, 0 deletions
diff --git a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Filter.kt b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Filter.kt index 82a78b5..7440c86 100644 --- a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Filter.kt +++ b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Filter.kt | |||
@@ -1,3 +1,21 @@ | |||
1 | /* | ||
2 | * pandoc-filter-plantuml, a Pandoc AST filter rendering PlantUML diagrams | ||
3 | * Copyright (C) 2018 Pacien TRAN-GIRARD | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU Affero General Public License as | ||
7 | * published by the Free Software Foundation, either version 3 of the | ||
8 | * License, or (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU Affero General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU Affero General Public License | ||
16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
1 | package org.pacien.pandoc.filter.plantuml | 19 | package org.pacien.pandoc.filter.plantuml |
2 | 20 | ||
3 | import com.fasterxml.jackson.databind.JsonNode | 21 | import com.fasterxml.jackson.databind.JsonNode |
diff --git a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Latex.kt b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Latex.kt index 48ce087..a6c0452 100644 --- a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Latex.kt +++ b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Latex.kt | |||
@@ -1,3 +1,21 @@ | |||
1 | /* | ||
2 | * pandoc-filter-plantuml, a Pandoc AST filter rendering PlantUML diagrams | ||
3 | * Copyright (C) 2018 Pacien TRAN-GIRARD | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU Affero General Public License as | ||
7 | * published by the Free Software Foundation, either version 3 of the | ||
8 | * License, or (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU Affero General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU Affero General Public License | ||
16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
1 | package org.pacien.pandoc.filter.plantuml | 19 | package org.pacien.pandoc.filter.plantuml |
2 | 20 | ||
3 | fun Sequence<String>.toLatex() = Latex(this) | 21 | fun Sequence<String>.toLatex() = Latex(this) |
diff --git a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Main.kt b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Main.kt index 1ebe8f9..8db7043 100644 --- a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Main.kt +++ b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/Main.kt | |||
@@ -1,3 +1,21 @@ | |||
1 | /* | ||
2 | * pandoc-filter-plantuml, a Pandoc AST filter rendering PlantUML diagrams | ||
3 | * Copyright (C) 2018 Pacien TRAN-GIRARD | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU Affero General Public License as | ||
7 | * published by the Free Software Foundation, either version 3 of the | ||
8 | * License, or (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU Affero General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU Affero General Public License | ||
16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
1 | package org.pacien.pandoc.filter.plantuml | 19 | package org.pacien.pandoc.filter.plantuml |
2 | 20 | ||
3 | fun main(args: Array<String>) { | 21 | fun main(args: Array<String>) { |
diff --git a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/PandocNode.kt b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/PandocNode.kt index 8b3ddde..edf122b 100644 --- a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/PandocNode.kt +++ b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/PandocNode.kt | |||
@@ -1,3 +1,21 @@ | |||
1 | /* | ||
2 | * pandoc-filter-plantuml, a Pandoc AST filter rendering PlantUML diagrams | ||
3 | * Copyright (C) 2018 Pacien TRAN-GIRARD | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU Affero General Public License as | ||
7 | * published by the Free Software Foundation, either version 3 of the | ||
8 | * License, or (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU Affero General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU Affero General Public License | ||
16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
1 | package org.pacien.pandoc.filter.plantuml | 19 | package org.pacien.pandoc.filter.plantuml |
2 | 20 | ||
3 | import com.fasterxml.jackson.databind.JsonNode | 21 | import com.fasterxml.jackson.databind.JsonNode |
diff --git a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/PlantUml.kt b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/PlantUml.kt index 2a8da1b..135cf0b 100644 --- a/src/main/kotlin/org/pacien/pandoc/filter/plantuml/PlantUml.kt +++ b/src/main/kotlin/org/pacien/pandoc/filter/plantuml/PlantUml.kt | |||
@@ -1,3 +1,21 @@ | |||
1 | /* | ||
2 | * pandoc-filter-plantuml, a Pandoc AST filter rendering PlantUML diagrams | ||
3 | * Copyright (C) 2018 Pacien TRAN-GIRARD | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU Affero General Public License as | ||
7 | * published by the Free Software Foundation, either version 3 of the | ||
8 | * License, or (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU Affero General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU Affero General Public License | ||
16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
1 | package org.pacien.pandoc.filter.plantuml | 19 | package org.pacien.pandoc.filter.plantuml |
2 | 20 | ||
3 | import net.sourceforge.plantuml.FileFormat | 21 | import net.sourceforge.plantuml.FileFormat |
diff --git a/src/test/kotlin/org/pacien/pandoc/filter/plantuml/FilterTest.kt b/src/test/kotlin/org/pacien/pandoc/filter/plantuml/FilterTest.kt index 4ec183b..557daae 100644 --- a/src/test/kotlin/org/pacien/pandoc/filter/plantuml/FilterTest.kt +++ b/src/test/kotlin/org/pacien/pandoc/filter/plantuml/FilterTest.kt | |||
@@ -1,3 +1,21 @@ | |||
1 | /* | ||
2 | * pandoc-filter-plantuml, a Pandoc AST filter rendering PlantUML diagrams | ||
3 | * Copyright (C) 2018 Pacien TRAN-GIRARD | ||
4 | * | ||
5 | * This program is free software: you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU Affero General Public License as | ||
7 | * published by the Free Software Foundation, either version 3 of the | ||
8 | * License, or (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU Affero General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU Affero General Public License | ||
16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
1 | package org.pacien.pandoc.filter.plantuml | 19 | package org.pacien.pandoc.filter.plantuml |
2 | 20 | ||
3 | import org.junit.Assert | 21 | import org.junit.Assert |