Add AsciiDoc converter output

This commit is contained in:
deeaitch committed 2026-08-28 01:16:16 -04:00
1 parent e5cb11c659
commit 804876656d
7 files changed
+99 -3

No files matched your search

+4 -2
View File
@@ -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");