summaryrefslogtreecommitdiffstats
path: root/src/md2attr_line.hh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/md2attr_line.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/md2attr_line.hh b/src/md2attr_line.hh
index 9f1f977..212b3ac 100644
--- a/src/md2attr_line.hh
+++ b/src/md2attr_line.hh
@@ -34,6 +34,10 @@
#include "ghc/filesystem.hpp"
#include "md4cpp.hh"
+namespace pugi {
+class xml_node;
+}
+
class md2attr_line : public md4cpp::typed_event_handler<attr_line_t> {
public:
md2attr_line() { this->ml_blocks.resize(1); }
@@ -77,13 +81,14 @@ private:
void append_url_footnote(std::string href);
void flush_footnotes();
+ attr_line_t to_attr_line(const pugi::xml_node& doc);
nonstd::optional<ghc::filesystem::path> ml_source_path;
std::vector<attr_line_t> ml_blocks;
std::vector<list_block_t> ml_list_stack;
std::vector<table_t> ml_tables;
std::vector<size_t> ml_span_starts;
- std::vector<size_t> ml_html_span_starts;
+ std::vector<std::pair<std::string, size_t>> ml_html_starts;
std::vector<attr_line_t> ml_footnotes;
int32_t ml_code_depth{0};
};