Add AsciiDoc converter output
This commit is contained in:
1 parent
e5cb11c659
commit
804876656d
7 files changed
+99
-3
No files matched your search
@@ -3,6 +3,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "convertasciidoc.h"
|
||||
#include "convertlatex.h"
|
||||
#include "convertmarkdown.h"
|
||||
#include "convertorg.h"
|
||||
@@ -10,8 +11,8 @@
|
||||
|
||||
using ConverterFactory = TypeFactory<std::string, Converter, std::string>;
|
||||
|
||||
static constexpr std::array<const char *, 3> kSupportedTypes = {
|
||||
"latex", "md", "org"
|
||||
static constexpr std::array<const char *, 4> kSupportedTypes = {
|
||||
"latex", "md", "org", "adoc"
|
||||
};
|
||||
|
||||
struct CliArgs {
|
||||
@@ -34,6 +35,7 @@ static void print_supported_types() {
|
||||
|
||||
static ConverterFactory build_converter_factory() {
|
||||
ConverterFactory factory;
|
||||
factory.registerType<ConverterAsciiDoc> ("adoc");
|
||||
factory.registerType<ConverterLatex> ("latex");
|
||||
factory.registerType<ConverterMarkdown> ("md");
|
||||
factory.registerType<ConverterOrg> ("org");
|
||||
|
||||
Reference in new issue
Block a user