implement macros

This commit is contained in:
evilchili committed 2026-10-17 13:28:47 -07:00
1 parent a306820a78
commit 241f67fb4d
27 files changed
+597 -257

No files matched your search

+5
View File
@@ -39,10 +39,15 @@ function escapeHtml(source) {
*/
class HopDown {
tags;
macros = null;
tokenizer;
constructor(tags) {
this.tags = tags || defaults_1.defaultTags;
this.tokenizer = new tokenizer_1.Tokenizer(this.tags);
var macroTags = this.tags.map.get(':::');
if (macroTags) {
this.macros = macroTags[0];
}
}
/**
* Convert a markdown string to tokens.