implement macros
This commit is contained in:
1 parent
a306820a78
commit
241f67fb4d
27 files changed
+597
-257
No files matched your search
Vendored
+5
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user