diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-10-27 23:10:35 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-10-27 23:14:45 -0700 |
| commit | ca56a2618dd306855a4ede4dbcc389d4c714cccd (patch) | |
| tree | 8600e72216f6d5db6cd93874c5e0c167129a3db8 /src/markdown_translator.h | |
| parent | 539ef6568697c9dc1712fc7a2a379d4e3fb9235c (diff) | |
add metadata section for controlling title
Diffstat (limited to 'src/markdown_translator.h')
| -rw-r--r-- | src/markdown_translator.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/markdown_translator.h b/src/markdown_translator.h index 6d24ac7..6c0c1bc 100644 --- a/src/markdown_translator.h +++ b/src/markdown_translator.h @@ -13,11 +13,12 @@ public: // Destructor ~MarkdownTranslator(); // Main translation function - takes markdown content and returns HTML - std::string translate(const std::string& markdownContent, const std::string& cssPath = "styles/ffxiv-style.css", const std::string& title = "Title"); + std::string translate(const std::string& markdownContent, const std::string& cssPath = "styles/carbon.css"); std::string processLine(const std::string& line); private: // Helper functions for different markdown elements + void processMetadata(const std::vector<std::string>& lines); std::string processHeaders(const std::string& line); std::string processBold(const std::string& text); std::string processItalic(const std::string& text); @@ -26,10 +27,13 @@ private: std::string processSingleFigure(const std::string& text); std::string processFigureBlock(const std::vector<std::string>& lines); // Navigation and table of contents - void generateSideBar(std::stringstream& output, const std::vector<std::string>& headers, const std::string& title); + void generateSideBar(std::stringstream& output, const std::vector<std::string>& headers); std::string createAnchorId(const std::string& text); // Utility functions std::string getCurrentDateTime(); + + // Member variables + std::string title; }; #endif // MARKDOWN_TRANSLATOR_H |
