@readme/markdown 15.9.0 → 15.9.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/components/Accordion/style.scss +4 -1
- package/components/Callout/style.scss +8 -0
- package/components/HTMLBlock/index.tsx +5 -4
- package/dist/main.css +2 -2
- package/dist/main.css.map +1 -1
- package/dist/main.js +206 -163
- package/dist/main.node.js +280 -171
- package/dist/main.node.js.map +1 -1
- package/dist/processor/transform/mdxish/components/utils.d.ts +0 -7
- package/dist/processor/transform/mdxish/magic-blocks/types.d.ts +1 -0
- package/dist/processor/transform/mdxish/reparse-source.d.ts +18 -0
- package/dist/processor/transform/mdxish/tables/mdxish-tables.d.ts +3 -2
- package/dist/processor/transform/mdxish/tables/split-nested-tables.d.ts +3 -2
- package/dist/processor/utils.d.ts +4 -5
- package/dist/render-fixture.css +1 -1
- package/dist/render-fixture.css.map +1 -1
- package/dist/render-fixture.node.js +280 -172
- package/dist/render-fixture.node.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +2 -2
- package/dist/processor/plugin/safe-mode-html-blocks.d.ts +0 -12
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "15.9.
|
|
5
|
+
"version": "15.9.2",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|
package/types.d.ts
CHANGED
|
@@ -241,10 +241,10 @@ declare module 'mdast' {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
interface TableData {
|
|
244
|
-
/** Per-column CSS widths (`"30%"`, `"200px"`), indexed like `align`. */
|
|
245
|
-
widths?: (string | null)[];
|
|
246
244
|
/** Authored as lowercase `<table>`; the serializer keeps that spelling when there is no alignment to encode. */
|
|
247
245
|
lowercaseTable?: boolean;
|
|
246
|
+
/** Per-column CSS widths (`"30%"`, `"200px"`), indexed like `align`. */
|
|
247
|
+
widths?: (string | null)[];
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
interface BlockContentMap {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Root } from 'hast';
|
|
2
|
-
import type { Transformer } from 'unified';
|
|
3
|
-
/**
|
|
4
|
-
* Forces `safeMode` on every element that renders through `HTMLBlock` so it is
|
|
5
|
-
* shown as escaped text instead of injected.
|
|
6
|
-
*
|
|
7
|
-
* Runs last, so it sees every producer of the element — `[block:html]`,
|
|
8
|
-
* `<HTMLBlock>` with a template body or an `html` attribute, and a literal
|
|
9
|
-
* `<html-block>` — and it is unconditional so an author-supplied
|
|
10
|
-
* `safeMode="false"` can't opt out.
|
|
11
|
-
*/
|
|
12
|
-
export declare const enforceSafeModeHtmlBlocks: () => Transformer<Root, Root>;
|