From f5cc8fe3e14b5f39027c038c35fd9e2023556adb Mon Sep 17 00:00:00 2001 From: James Perkins Date: Fri, 21 Aug 2020 11:37:09 -0700 Subject: [PATCH] [#1] Support more formatting options for the generated asciidoc. --- pom.xml | 9 +- .../tool/plugin/PluginAdocGenerator.java | 19 +-- .../plugin/formatter/AbstractNodeVisitor.java | 109 ++++++++++++++++++ .../formatter/AppendableNodeVisitor.java | 53 +++++++++ .../plugin/formatter/BoldNodeVisitor.java | 46 ++++++++ .../plugin/formatter/BreakNodeVisitor.java | 46 ++++++++ .../formatter/CodeBlockNodeVisitor.java | 62 ++++++++++ .../formatter/CompositeNodeVisitor.java | 70 +++++++++++ .../tool/plugin/formatter/Formatters.java | 55 +++++++++ .../plugin/formatter/ItalicNodeVisitor.java | 46 ++++++++ .../plugin/formatter/ListNodeVisitor.java | 72 ++++++++++++ .../formatter/ParagraphNodeVisitor.java | 46 ++++++++ .../plugin/formatter/TextNodeVisitor.java | 48 ++++++++ 13 files changed, 672 insertions(+), 9 deletions(-) create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/AbstractNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/AppendableNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/BoldNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/BreakNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/CodeBlockNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/CompositeNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/Formatters.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/ItalicNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/ListNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/ParagraphNodeVisitor.java create mode 100644 src/main/java/org/wildfly/tool/plugin/formatter/TextNodeVisitor.java diff --git a/pom.xml b/pom.xml index 98e5575..9bb8cd6 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@