@ai-matrx/content-ir 0.19.11 → 0.19.12
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/source.cjs +12 -0
- package/dist/source.cjs.map +1 -1
- package/dist/source.d.cts +9 -1
- package/dist/source.d.ts +9 -1
- package/dist/source.js +12 -1
- package/dist/source.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.19.12
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/content-ir-core/v0.19.11..npm/content-ir-core/v0.19.12 -- apps/shared/content-ir-core`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.19.11
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
package/dist/index.cjs
CHANGED
|
@@ -7701,6 +7701,17 @@ var HTML_BLOCK_NAMES = "address|article|aside|base|basefont|blockquote|body|capt
|
|
|
7701
7701
|
var HTML_BLOCK_TAG = new RegExp(`^</?(?:${HTML_BLOCK_NAMES})(?:[\\s>]|/>|$)`, "i");
|
|
7702
7702
|
var ATTRIBUTE = `\\s+[A-Za-z_:][A-Za-z0-9_.:-]*(?:\\s*=\\s*(?:[^\\s"'=<>\`]+|'[^']*'|"[^"]*"))?`;
|
|
7703
7703
|
var HTML_COMPLETE_TAG = new RegExp(`^(?:<[A-Za-z][A-Za-z0-9-]*(?:${ATTRIBUTE})*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*>)\\s*$`);
|
|
7704
|
+
var HTML_BLOCK_NAME_SET = /* @__PURE__ */ new Set([
|
|
7705
|
+
// Condition 1 (raw text) and condition 6 (block) tag names — CommonMark 0.31.
|
|
7706
|
+
"script",
|
|
7707
|
+
"pre",
|
|
7708
|
+
"style",
|
|
7709
|
+
"textarea",
|
|
7710
|
+
...HTML_BLOCK_NAMES.replace("h[1-6]", "h1|h2|h3|h4|h5|h6").split("|")
|
|
7711
|
+
]);
|
|
7712
|
+
function isHtmlBlockTagName(name) {
|
|
7713
|
+
return HTML_BLOCK_NAME_SET.has(name.toLowerCase());
|
|
7714
|
+
}
|
|
7704
7715
|
function startsHtmlBlock(trimmed) {
|
|
7705
7716
|
if (!trimmed.startsWith("<")) return false;
|
|
7706
7717
|
return HTML_RAW.test(trimmed) || HTML_COMMENT_ETC.test(trimmed) || HTML_BLOCK_TAG.test(trimmed) || HTML_COMPLETE_TAG.test(trimmed);
|
|
@@ -7909,6 +7920,7 @@ exports.isDuplicateBlockSlug = isDuplicateBlockSlug;
|
|
|
7909
7920
|
exports.isEmptyResidue = isEmptyResidue;
|
|
7910
7921
|
exports.isEscapedBracketMath = isEscapedBracketMath;
|
|
7911
7922
|
exports.isGfmDelimiterRow = isGfmDelimiterRow;
|
|
7923
|
+
exports.isHtmlBlockTagName = isHtmlBlockTagName;
|
|
7912
7924
|
exports.isIrEnvelopeCache = isIrEnvelopeCache;
|
|
7913
7925
|
exports.isJsonAnyField = isJsonAnyField;
|
|
7914
7926
|
exports.isKindDirective = isKindDirective;
|