ironmark 1.9.0 → 1.10.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.
Binary file
package/wasm/shared.js CHANGED
@@ -48,13 +48,13 @@ export function createParseToAst(wasmParseToAst) {
48
48
  }
49
49
 
50
50
  export function createRenderAnsi(wasmRenderAnsi) {
51
- return function renderAnsi(markdown, options) {
51
+ return function renderAnsi(markdown, options, ansiOptions) {
52
52
  return wasmRenderAnsi(
53
53
  ...optionArgs(markdown, options),
54
54
  // width is plain u32 (not Option): 0 = use default (80)
55
- options?.width ?? 0,
56
- options?.color,
57
- options?.lineNumbers,
55
+ ansiOptions?.width ?? 0,
56
+ ansiOptions?.color,
57
+ ansiOptions?.lineNumbers,
58
58
  );
59
59
  };
60
60
  }