@readme/markdown 15.9.0 → 15.9.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/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.0",
5
+ "version": "15.9.1",
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>;