Add Org mode converter output

This commit is contained in:
deeaitch committed 2026-08-28 01:14:51 -04:00
1 parent 432a1dc223
commit e5cb11c659
7 files changed
+98 -3

No files matched your search

+4 -2
View File
@@ -5,12 +5,13 @@
#include "convertlatex.h"
#include "convertmarkdown.h"
#include "convertorg.h"
#include "typefactory.h"
using ConverterFactory = TypeFactory<std::string, Converter, std::string>;
static constexpr std::array<const char *, 2> kSupportedTypes = {
"latex", "md"
static constexpr std::array<const char *, 3> kSupportedTypes = {
"latex", "md", "org"
};
struct CliArgs {
@@ -35,6 +36,7 @@ static ConverterFactory build_converter_factory() {
ConverterFactory factory;
factory.registerType<ConverterLatex> ("latex");
factory.registerType<ConverterMarkdown> ("md");
factory.registerType<ConverterOrg> ("org");
return factory;
}