@readme/markdown 6.39.2 → 6.39.3
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/dist/main.js +9 -3
- package/dist/main.node.js +9 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -28316,7 +28316,7 @@ module.exports = function RdmeVarCompiler() {
|
|
|
28316
28316
|
|
|
28317
28317
|
var _slicedToArray = __webpack_require__(3038);
|
|
28318
28318
|
|
|
28319
|
-
var rgx = /^(
|
|
28319
|
+
var rgx = /^(#{1,6})(?!(?:#|\s))([^\n]+)\n/;
|
|
28320
28320
|
|
|
28321
28321
|
function tokenizer(eat, value) {
|
|
28322
28322
|
if (!rgx.test(value)) return true;
|
|
@@ -28327,8 +28327,14 @@ function tokenizer(eat, value) {
|
|
|
28327
28327
|
hash = _rgx$exec2[1],
|
|
28328
28328
|
text = _rgx$exec2[2];
|
|
28329
28329
|
|
|
28330
|
-
var
|
|
28331
|
-
|
|
28330
|
+
var now = eat.now();
|
|
28331
|
+
now.column += match.length;
|
|
28332
|
+
now.offset += match.length;
|
|
28333
|
+
return eat(match)({
|
|
28334
|
+
type: 'heading',
|
|
28335
|
+
depth: hash.length,
|
|
28336
|
+
children: this.tokenizeInline(text, now)
|
|
28337
|
+
});
|
|
28332
28338
|
}
|
|
28333
28339
|
|
|
28334
28340
|
function parser() {
|
package/dist/main.node.js
CHANGED
|
@@ -11139,7 +11139,7 @@ module.exports = function RdmeVarCompiler() {
|
|
|
11139
11139
|
|
|
11140
11140
|
var _slicedToArray = __webpack_require__(3038);
|
|
11141
11141
|
|
|
11142
|
-
var rgx = /^(
|
|
11142
|
+
var rgx = /^(#{1,6})(?!(?:#|\s))([^\n]+)\n/;
|
|
11143
11143
|
|
|
11144
11144
|
function tokenizer(eat, value) {
|
|
11145
11145
|
if (!rgx.test(value)) return true;
|
|
@@ -11150,8 +11150,14 @@ function tokenizer(eat, value) {
|
|
|
11150
11150
|
hash = _rgx$exec2[1],
|
|
11151
11151
|
text = _rgx$exec2[2];
|
|
11152
11152
|
|
|
11153
|
-
var
|
|
11154
|
-
|
|
11153
|
+
var now = eat.now();
|
|
11154
|
+
now.column += match.length;
|
|
11155
|
+
now.offset += match.length;
|
|
11156
|
+
return eat(match)({
|
|
11157
|
+
type: 'heading',
|
|
11158
|
+
depth: hash.length,
|
|
11159
|
+
children: this.tokenizeInline(text, now)
|
|
11160
|
+
});
|
|
11155
11161
|
}
|
|
11156
11162
|
|
|
11157
11163
|
function parser() {
|
package/package.json
CHANGED