ironmark 1.7.0 → 1.8.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.
@@ -1,6 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
- export function parse(markdown: string, hard_breaks?: boolean | null, enable_highlight?: boolean | null, enable_strikethrough?: boolean | null, enable_underline?: boolean | null, enable_tables?: boolean | null, enable_autolink?: boolean | null, enable_task_lists?: boolean | null, disable_raw_html?: boolean | null): string;
4
+ export function parse(markdown: string, hard_breaks?: boolean | null, enable_highlight?: boolean | null, enable_strikethrough?: boolean | null, enable_underline?: boolean | null, enable_tables?: boolean | null, enable_autolink?: boolean | null, enable_task_lists?: boolean | null, disable_raw_html?: boolean | null, enable_heading_ids?: boolean | null, enable_heading_anchors?: boolean | null, enable_indented_code_blocks?: boolean | null, no_html_blocks?: boolean | null, no_html_spans?: boolean | null, tag_filter?: boolean | null, collapse_whitespace?: boolean | null, permissive_atx_headers?: boolean | null, enable_wiki_links?: boolean | null, enable_latex_math?: boolean | null): string;
5
5
 
6
- export function parseToAst(markdown: string, hard_breaks?: boolean | null, enable_highlight?: boolean | null, enable_strikethrough?: boolean | null, enable_underline?: boolean | null, enable_tables?: boolean | null, enable_autolink?: boolean | null, enable_task_lists?: boolean | null, disable_raw_html?: boolean | null): string;
6
+ export function parseToAst(markdown: string, hard_breaks?: boolean | null, enable_highlight?: boolean | null, enable_strikethrough?: boolean | null, enable_underline?: boolean | null, enable_tables?: boolean | null, enable_autolink?: boolean | null, enable_task_lists?: boolean | null, disable_raw_html?: boolean | null, enable_heading_ids?: boolean | null, enable_heading_anchors?: boolean | null, enable_indented_code_blocks?: boolean | null, no_html_blocks?: boolean | null, no_html_spans?: boolean | null, tag_filter?: boolean | null, collapse_whitespace?: boolean | null, permissive_atx_headers?: boolean | null, enable_wiki_links?: boolean | null, enable_latex_math?: boolean | null): string;
@@ -8,16 +8,26 @@
8
8
  * @param {boolean | null} [enable_autolink]
9
9
  * @param {boolean | null} [enable_task_lists]
10
10
  * @param {boolean | null} [disable_raw_html]
11
+ * @param {boolean | null} [enable_heading_ids]
12
+ * @param {boolean | null} [enable_heading_anchors]
13
+ * @param {boolean | null} [enable_indented_code_blocks]
14
+ * @param {boolean | null} [no_html_blocks]
15
+ * @param {boolean | null} [no_html_spans]
16
+ * @param {boolean | null} [tag_filter]
17
+ * @param {boolean | null} [collapse_whitespace]
18
+ * @param {boolean | null} [permissive_atx_headers]
19
+ * @param {boolean | null} [enable_wiki_links]
20
+ * @param {boolean | null} [enable_latex_math]
11
21
  * @returns {string}
12
22
  */
13
- export function parse(markdown, hard_breaks, enable_highlight, enable_strikethrough, enable_underline, enable_tables, enable_autolink, enable_task_lists, disable_raw_html) {
23
+ export function parse(markdown, hard_breaks, enable_highlight, enable_strikethrough, enable_underline, enable_tables, enable_autolink, enable_task_lists, disable_raw_html, enable_heading_ids, enable_heading_anchors, enable_indented_code_blocks, no_html_blocks, no_html_spans, tag_filter, collapse_whitespace, permissive_atx_headers, enable_wiki_links, enable_latex_math) {
14
24
  let deferred2_0;
15
25
  let deferred2_1;
16
26
  try {
17
27
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
18
28
  const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export, wasm.__wbindgen_export2);
19
29
  const len0 = WASM_VECTOR_LEN;
20
- wasm.parse(retptr, ptr0, len0, isLikeNone(hard_breaks) ? 0xFFFFFF : hard_breaks ? 1 : 0, isLikeNone(enable_highlight) ? 0xFFFFFF : enable_highlight ? 1 : 0, isLikeNone(enable_strikethrough) ? 0xFFFFFF : enable_strikethrough ? 1 : 0, isLikeNone(enable_underline) ? 0xFFFFFF : enable_underline ? 1 : 0, isLikeNone(enable_tables) ? 0xFFFFFF : enable_tables ? 1 : 0, isLikeNone(enable_autolink) ? 0xFFFFFF : enable_autolink ? 1 : 0, isLikeNone(enable_task_lists) ? 0xFFFFFF : enable_task_lists ? 1 : 0, isLikeNone(disable_raw_html) ? 0xFFFFFF : disable_raw_html ? 1 : 0);
30
+ wasm.parse(retptr, ptr0, len0, isLikeNone(hard_breaks) ? 0xFFFFFF : hard_breaks ? 1 : 0, isLikeNone(enable_highlight) ? 0xFFFFFF : enable_highlight ? 1 : 0, isLikeNone(enable_strikethrough) ? 0xFFFFFF : enable_strikethrough ? 1 : 0, isLikeNone(enable_underline) ? 0xFFFFFF : enable_underline ? 1 : 0, isLikeNone(enable_tables) ? 0xFFFFFF : enable_tables ? 1 : 0, isLikeNone(enable_autolink) ? 0xFFFFFF : enable_autolink ? 1 : 0, isLikeNone(enable_task_lists) ? 0xFFFFFF : enable_task_lists ? 1 : 0, isLikeNone(disable_raw_html) ? 0xFFFFFF : disable_raw_html ? 1 : 0, isLikeNone(enable_heading_ids) ? 0xFFFFFF : enable_heading_ids ? 1 : 0, isLikeNone(enable_heading_anchors) ? 0xFFFFFF : enable_heading_anchors ? 1 : 0, isLikeNone(enable_indented_code_blocks) ? 0xFFFFFF : enable_indented_code_blocks ? 1 : 0, isLikeNone(no_html_blocks) ? 0xFFFFFF : no_html_blocks ? 1 : 0, isLikeNone(no_html_spans) ? 0xFFFFFF : no_html_spans ? 1 : 0, isLikeNone(tag_filter) ? 0xFFFFFF : tag_filter ? 1 : 0, isLikeNone(collapse_whitespace) ? 0xFFFFFF : collapse_whitespace ? 1 : 0, isLikeNone(permissive_atx_headers) ? 0xFFFFFF : permissive_atx_headers ? 1 : 0, isLikeNone(enable_wiki_links) ? 0xFFFFFF : enable_wiki_links ? 1 : 0, isLikeNone(enable_latex_math) ? 0xFFFFFF : enable_latex_math ? 1 : 0);
21
31
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
22
32
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
23
33
  deferred2_0 = r0;
@@ -39,16 +49,26 @@ export function parse(markdown, hard_breaks, enable_highlight, enable_strikethro
39
49
  * @param {boolean | null} [enable_autolink]
40
50
  * @param {boolean | null} [enable_task_lists]
41
51
  * @param {boolean | null} [disable_raw_html]
52
+ * @param {boolean | null} [enable_heading_ids]
53
+ * @param {boolean | null} [enable_heading_anchors]
54
+ * @param {boolean | null} [enable_indented_code_blocks]
55
+ * @param {boolean | null} [no_html_blocks]
56
+ * @param {boolean | null} [no_html_spans]
57
+ * @param {boolean | null} [tag_filter]
58
+ * @param {boolean | null} [collapse_whitespace]
59
+ * @param {boolean | null} [permissive_atx_headers]
60
+ * @param {boolean | null} [enable_wiki_links]
61
+ * @param {boolean | null} [enable_latex_math]
42
62
  * @returns {string}
43
63
  */
44
- export function parseToAst(markdown, hard_breaks, enable_highlight, enable_strikethrough, enable_underline, enable_tables, enable_autolink, enable_task_lists, disable_raw_html) {
64
+ export function parseToAst(markdown, hard_breaks, enable_highlight, enable_strikethrough, enable_underline, enable_tables, enable_autolink, enable_task_lists, disable_raw_html, enable_heading_ids, enable_heading_anchors, enable_indented_code_blocks, no_html_blocks, no_html_spans, tag_filter, collapse_whitespace, permissive_atx_headers, enable_wiki_links, enable_latex_math) {
45
65
  let deferred3_0;
46
66
  let deferred3_1;
47
67
  try {
48
68
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
49
69
  const ptr0 = passStringToWasm0(markdown, wasm.__wbindgen_export, wasm.__wbindgen_export2);
50
70
  const len0 = WASM_VECTOR_LEN;
51
- wasm.parseToAst(retptr, ptr0, len0, isLikeNone(hard_breaks) ? 0xFFFFFF : hard_breaks ? 1 : 0, isLikeNone(enable_highlight) ? 0xFFFFFF : enable_highlight ? 1 : 0, isLikeNone(enable_strikethrough) ? 0xFFFFFF : enable_strikethrough ? 1 : 0, isLikeNone(enable_underline) ? 0xFFFFFF : enable_underline ? 1 : 0, isLikeNone(enable_tables) ? 0xFFFFFF : enable_tables ? 1 : 0, isLikeNone(enable_autolink) ? 0xFFFFFF : enable_autolink ? 1 : 0, isLikeNone(enable_task_lists) ? 0xFFFFFF : enable_task_lists ? 1 : 0, isLikeNone(disable_raw_html) ? 0xFFFFFF : disable_raw_html ? 1 : 0);
71
+ wasm.parseToAst(retptr, ptr0, len0, isLikeNone(hard_breaks) ? 0xFFFFFF : hard_breaks ? 1 : 0, isLikeNone(enable_highlight) ? 0xFFFFFF : enable_highlight ? 1 : 0, isLikeNone(enable_strikethrough) ? 0xFFFFFF : enable_strikethrough ? 1 : 0, isLikeNone(enable_underline) ? 0xFFFFFF : enable_underline ? 1 : 0, isLikeNone(enable_tables) ? 0xFFFFFF : enable_tables ? 1 : 0, isLikeNone(enable_autolink) ? 0xFFFFFF : enable_autolink ? 1 : 0, isLikeNone(enable_task_lists) ? 0xFFFFFF : enable_task_lists ? 1 : 0, isLikeNone(disable_raw_html) ? 0xFFFFFF : disable_raw_html ? 1 : 0, isLikeNone(enable_heading_ids) ? 0xFFFFFF : enable_heading_ids ? 1 : 0, isLikeNone(enable_heading_anchors) ? 0xFFFFFF : enable_heading_anchors ? 1 : 0, isLikeNone(enable_indented_code_blocks) ? 0xFFFFFF : enable_indented_code_blocks ? 1 : 0, isLikeNone(no_html_blocks) ? 0xFFFFFF : no_html_blocks ? 1 : 0, isLikeNone(no_html_spans) ? 0xFFFFFF : no_html_spans ? 1 : 0, isLikeNone(tag_filter) ? 0xFFFFFF : tag_filter ? 1 : 0, isLikeNone(collapse_whitespace) ? 0xFFFFFF : collapse_whitespace ? 1 : 0, isLikeNone(permissive_atx_headers) ? 0xFFFFFF : permissive_atx_headers ? 1 : 0, isLikeNone(enable_wiki_links) ? 0xFFFFFF : enable_wiki_links ? 1 : 0, isLikeNone(enable_latex_math) ? 0xFFFFFF : enable_latex_math ? 1 : 0);
52
72
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
53
73
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
54
74
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
Binary file
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const parse: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
5
- export const parseToAst: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
4
+ export const parse: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => void;
5
+ export const parseToAst: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => void;
6
6
  export const ironmark_free: (a: number) => void;
7
7
  export const ironmark_parse: (a: number) => number;
8
8
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
package/wasm/shared.js CHANGED
@@ -22,6 +22,16 @@ function optionArgs(markdown, options) {
22
22
  options?.enableAutolink ?? undefined,
23
23
  options?.enableTaskLists ?? undefined,
24
24
  options?.disableRawHtml ?? undefined,
25
+ options?.enableHeadingIds ?? undefined,
26
+ options?.enableHeadingAnchors ?? undefined,
27
+ options?.enableIndentedCodeBlocks ?? undefined,
28
+ options?.noHtmlBlocks ?? undefined,
29
+ options?.noHtmlSpans ?? undefined,
30
+ options?.tagFilter ?? undefined,
31
+ options?.collapseWhitespace ?? undefined,
32
+ options?.permissiveAtxHeaders ?? undefined,
33
+ options?.enableWikiLinks ?? undefined,
34
+ options?.enableLatexMath ?? undefined,
25
35
  ];
26
36
  }
27
37