flinker-markdown 1.1.7 → 1.1.8

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.
package/README.md CHANGED
@@ -7,6 +7,14 @@ __FlinkerMD__ (MD) is a TypeScript library for parsing markdown text into html.
7
7
  npm i flinker-markdown
8
8
  ```
9
9
 
10
+ ## Demo
11
+ ```cli
12
+ git clone https://github.com/Dittner/FlinkerMD
13
+ cd FlinkerMD/MarkdownDemo
14
+ npm install
15
+ npm run dev
16
+ ```
17
+
10
18
  ## Example 1
11
19
  ```ts
12
20
  import { md, MDGrammar, MDParser } from "flinker-markdown"
package/dist/esm/md.js CHANGED
@@ -125,12 +125,12 @@ export class MDGrammar {
125
125
  this.ul = new MDMultilineGrammarRule();
126
126
  this.ol.startMatcher = [/^```ol *$/, '<ol>'];
127
127
  this.ol.endMatcher = [/^``` *$/, '</ol>'];
128
- this.ol.childrenLineRules = [this.oli, this.br, this.p];
128
+ this.ol.childrenLineRules = [this.oli, this.tilde, this.warn, this.br, this.p];
129
129
  this.ol.childrenInlineRules = this.globalRule.childrenInlineRules;
130
130
  this.ol.childrenMultilineRules = [this.ol, this.ul];
131
131
  this.ul.startMatcher = [/^```ul *$/, '<ul>'];
132
132
  this.ul.endMatcher = [/^``` *$/, '</ul>'];
133
- this.ul.childrenLineRules = [this.uli, this.br, this.p];
133
+ this.ul.childrenLineRules = [this.uli, this.tilde, this.warn, this.br, this.p];
134
134
  this.ul.childrenInlineRules = this.globalRule.childrenInlineRules;
135
135
  this.ul.childrenMultilineRules = [this.ol, this.ul];
136
136
  this.table = new MDMultilineGrammarRule();
@@ -147,7 +147,7 @@ export class MDGrammar {
147
147
  this.div.startMatcher = [/^```([a-zA-Z]+) */, '<div class="$1"><div>'];
148
148
  this.div.endMatcher = [/^``` *$/, '</div></div>'];
149
149
  this.div.childrenInlineRules = this.globalRule.childrenInlineRules;
150
- this.div.childrenLineRules = [this.quote, this.alignCenter, this.alignRight, this.br, this.p];
150
+ this.div.childrenLineRules = [this.quote, this.alignCenter, this.alignRight, this.tilde, this.warn, this.br, this.p];
151
151
  this.div.childrenMultilineRules = [this.div];
152
152
  this.globalRule.childrenMultilineRules = [this.ol, this.ul, this.table, this.div];
153
153
  }
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.7",
4
+ "version": "1.1.8",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Dittner/FlinkerMD.git"