Add Markdown converter output

This commit is contained in:
deeaitch committed 2026-08-28 00:32:21 -04:00
1 parent 5474ee1a31
commit 15ff70b4c3
5 files changed
+108 -2

No files matched your search

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