@readme/markdown 13.6.0 → 13.6.2
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/index.d.ts +1 -1
- package/dist/lib/constants.d.ts +8 -0
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/mdast-util/jsx-table/index.d.ts +2 -0
- package/dist/lib/micromark/jsx-table/index.d.ts +1 -0
- package/dist/lib/micromark/jsx-table/syntax.d.ts +14 -0
- package/dist/lib/plain.d.ts +7 -0
- package/dist/main.js +1998 -1196
- package/dist/main.node.js +1998 -1196
- package/dist/main.node.js.map +1 -1
- package/dist/processor/transform/mdxish/mdxish-tables.d.ts +7 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const utils: {
|
|
|
6
6
|
getHref: typeof getHref;
|
|
7
7
|
calloutIcons: {};
|
|
8
8
|
};
|
|
9
|
-
export { compile, exports, hast, run, mdast, mdastV6, mdx, mdxish, mdxishAstProcessor, mdxishMdastToMd, mdxishTags, migrate, mix, plain, renderMdxish, remarkPlugins, stripComments, tags, } from './lib';
|
|
9
|
+
export { compile, exports, FLOW_TYPES, hast, run, mdast, mdastV6, mdx, mdxish, mdxishAstProcessor, mdxishMdastToMd, mdxishTags, migrate, mix, plain, renderMdxish, remarkPlugins, stripComments, tags, } from './lib';
|
|
10
10
|
export { default as Owlmoji } from './lib/owlmoji';
|
|
11
11
|
export { Components, utils };
|
|
12
12
|
export { tailwindCompiler } from './utils/tailwind-compiler';
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -2,3 +2,11 @@
|
|
|
2
2
|
* Pattern to match component tags (PascalCase or snake_case)
|
|
3
3
|
*/
|
|
4
4
|
export declare const componentTagPattern: RegExp;
|
|
5
|
+
/**
|
|
6
|
+
* MDAST flow (block-level) content types that cannot be represented
|
|
7
|
+
* inside GFM table cells. Used to decide whether a table should be
|
|
8
|
+
* serialized as GFM or as JSX `<Table>` syntax.
|
|
9
|
+
*
|
|
10
|
+
* @see https://github.com/syntax-tree/mdast#flowcontent
|
|
11
|
+
*/
|
|
12
|
+
export declare const FLOW_TYPES: Set<string>;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { MdastOpts } from './ast-processor';
|
|
2
|
-
export { componentTagPattern } from './constants';
|
|
2
|
+
export { componentTagPattern, FLOW_TYPES } from './constants';
|
|
3
3
|
export { default as astProcessor, remarkPlugins } from './ast-processor';
|
|
4
4
|
export { default as compile } from './compile';
|
|
5
5
|
export { default as exports } from './exports';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { jsxTable } from './syntax';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Extension } from 'micromark-util-types';
|
|
2
|
+
declare module 'micromark-util-types' {
|
|
3
|
+
interface TokenTypeMap {
|
|
4
|
+
jsxTable: 'jsxTable';
|
|
5
|
+
jsxTableData: 'jsxTableData';
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Micromark extension that tokenizes `<Table>...</Table>` as a single flow block.
|
|
10
|
+
*
|
|
11
|
+
* Prevents CommonMark HTML block type 6 from matching `<Table>` (case-insensitive
|
|
12
|
+
* match against `table`) and fragmenting it at blank lines.
|
|
13
|
+
*/
|
|
14
|
+
export declare function jsxTable(): Extension;
|
package/dist/lib/plain.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ interface Options {
|
|
|
9
9
|
* their respective regexes.
|
|
10
10
|
*/
|
|
11
11
|
preserveVariableSyntax?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Separator to use when joining sibling nodes.
|
|
14
|
+
* Defaults to a space for document-level plain text extraction.
|
|
15
|
+
* Use an empty string for inline-only contexts like TOC labels, where
|
|
16
|
+
* adjacent inline siblings should preserve authored adjacency.
|
|
17
|
+
*/
|
|
18
|
+
separator?: string;
|
|
12
19
|
variables?: Record<string, string>;
|
|
13
20
|
}
|
|
14
21
|
declare const plain: (node: Nodes, opts?: Options) => string | number | true | (string | number)[];
|