@lvce-editor/markdown-worker 2.0.0 → 2.2.0
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.
|
@@ -1266,6 +1266,7 @@ const RE_BLOCK_COMMENT_CONTENT = /^[a-zA-Z\s]+/;
|
|
|
1266
1266
|
const RE_COMMENT_END = /^-->/;
|
|
1267
1267
|
const RE_TAG_TEXT = /^[^\s>]+/;
|
|
1268
1268
|
const RE_ANY_TEXT = /^[^\n]+/;
|
|
1269
|
+
const RE_ATTRIBUTE_TEXT = /^[^\n<>/\s]+/;
|
|
1269
1270
|
const RE_BLOCK_COMMENT_START = /^<!--/;
|
|
1270
1271
|
const RE_SELF_CLOSING = /^\/>/;
|
|
1271
1272
|
const tokenizeHtml = text => {
|
|
@@ -1404,6 +1405,9 @@ const tokenizeHtml = text => {
|
|
|
1404
1405
|
} else if (next = part.match(RE_ANGLE_BRACKET_CLOSE)) {
|
|
1405
1406
|
token = ClosingAngleBracket;
|
|
1406
1407
|
state = State.TopLevelContent;
|
|
1408
|
+
} else if (next = part.match(RE_ATTRIBUTE_TEXT)) {
|
|
1409
|
+
token = AttributeValue;
|
|
1410
|
+
state = State.InsideOpeningTag;
|
|
1407
1411
|
} else {
|
|
1408
1412
|
throw new UnexpectedTokenError();
|
|
1409
1413
|
}
|