@readme/markdown 13.6.0 → 13.6.1

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 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';
@@ -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>;
@@ -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,2 @@
1
+ import type { Extension as FromMarkdownExtension } from 'mdast-util-from-markdown';
2
+ export declare function jsxTableFromMarkdown(): FromMarkdownExtension;
@@ -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;