@readme/markdown 11.13.0 → 11.14.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.
package/dist/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,14 @@ export interface BlockHit {
|
|
|
3
3
|
raw: string;
|
|
4
4
|
token: string;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* The content matching in this regex captures everything between `[block:TYPE]`
|
|
8
|
+
* and `[/block]`, including new lines. Negative lookahead for the closing
|
|
9
|
+
* `[/block]` tag is required to prevent greedy matching to ensure it stops at
|
|
10
|
+
* the first closing tag it encounters preventing vulnerability to polynomial
|
|
11
|
+
* backtracking issues.
|
|
12
|
+
*/
|
|
13
|
+
export declare const MAGIC_BLOCK_REGEX: RegExp;
|
|
6
14
|
/**
|
|
7
15
|
* Extract legacy magic block syntax from a markdown string.
|
|
8
16
|
* Returns the modified markdown and an array of extracted blocks.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detects if content contains HTML, magic blocks, or MDX syntax.
|
|
3
|
+
*
|
|
4
|
+
* We can use this in some pipelines to determine if we should have to parse content through
|
|
5
|
+
* `.plain() or if it is already plain text and it should be able to detect everything that would
|
|
6
|
+
* be stripped or sanitized by `.plain()`.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export default function isPlainText(content: string): boolean;
|
package/dist/main.js
CHANGED
|
@@ -95312,6 +95312,7 @@ async function stripComments(doc, { mdx } = {}) {
|
|
|
95312
95312
|
|
|
95313
95313
|
|
|
95314
95314
|
|
|
95315
|
+
|
|
95315
95316
|
;// ./index.tsx
|
|
95316
95317
|
|
|
95317
95318
|
|
package/dist/main.node.js
CHANGED
|
@@ -115516,6 +115516,7 @@ async function stripComments(doc, { mdx } = {}) {
|
|
|
115516
115516
|
|
|
115517
115517
|
|
|
115518
115518
|
|
|
115519
|
+
|
|
115519
115520
|
;// ./index.tsx
|
|
115520
115521
|
|
|
115521
115522
|
|