flinker-markdown 1.1.17 → 1.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/esm/md.js +4 -4
  2. package/package.json +1 -1
package/dist/esm/md.js CHANGED
@@ -77,7 +77,7 @@ export class MDGrammar {
77
77
  const count = signs.length;
78
78
  return '<h' + count + '>' + header + '</h' + count + '>';
79
79
  }];
80
- this.header.childrenInlineRules = [this.strong, this.boldItalic, this.bold, this.italic];
80
+ this.header.childrenInlineRules = [this.strong, this.boldItalic, this.bold, this.italic, this.icon];
81
81
  this.header.preProccessing = defLinePreproccessing;
82
82
  this.quote = new MDLineGrammarRule();
83
83
  this.quote.matcher = [/^> (.*)$/, '<blockquote><p>$1</p></blockquote>'];
@@ -132,13 +132,13 @@ export class MDGrammar {
132
132
  this.ul = new MDMultilineGrammarRule();
133
133
  this.ol.startMatcher = [/^```ol *$/, '<ol>'];
134
134
  this.ol.endMatcher = [/^``` *$/, '</ol>'];
135
- this.ol.childrenLineRules = [this.oli, this.tilde, this.br, this.p];
136
135
  this.ol.childrenInlineRules = this.globalRule.childrenInlineRules;
136
+ this.ol.childrenLineRules = [this.oli, this.tilde, this.br, this.p];
137
137
  this.ol.childrenMultilineRules = [this.ol, this.ul];
138
138
  this.ul.startMatcher = [/^```ul *$/, '<ul>'];
139
139
  this.ul.endMatcher = [/^``` *$/, '</ul>'];
140
- this.ul.childrenLineRules = [this.uli, this.tilde, this.br, this.p];
141
140
  this.ul.childrenInlineRules = this.globalRule.childrenInlineRules;
141
+ this.ul.childrenLineRules = [this.uli, this.tilde, this.br, this.p];
142
142
  this.ul.childrenMultilineRules = [this.ol, this.ul];
143
143
  this.table = new MDMultilineGrammarRule();
144
144
  this.table.startMatcher = [/^```tbl *$/, '<table>'];
@@ -155,7 +155,7 @@ export class MDGrammar {
155
155
  this.div.endMatcher = [/^``` *$/, '</div></div>'];
156
156
  this.div.childrenInlineRules = this.globalRule.childrenInlineRules;
157
157
  this.div.childrenLineRules = [this.quote, this.alignCenter, this.alignRight, this.tilde, this.horRule, this.br, this.p];
158
- this.div.childrenMultilineRules = [this.div];
158
+ this.div.childrenMultilineRules = [this.div, this.ol, this.ul, this.table];
159
159
  this.globalRule.childrenMultilineRules = [this.ol, this.ul, this.table, this.div];
160
160
  }
161
161
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flinker-markdown",
3
3
  "description": "Free TypeScript library for parsing markdown text (customisable, not standardized).",
4
- "version": "1.1.17",
4
+ "version": "1.1.19",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Dittner/FlinkerMD.git"