@rhcp/mimir_transforms_web
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -104,7 +104,47 @@ /* tslint:disable */ | ||
/** | ||
* "Replaces all <h*> tags with the next level down in the hierarchy for single-page Docs HTML files | ||
* | ||
* Before: | ||
* | ||
* ```html | ||
* <h2 class="subtitle"> | ||
* Highlighted features in 11.2 | ||
* </h2> | ||
* ``` | ||
* | ||
* After: | ||
* | ||
* ```html | ||
* <h3 class="subtitle"> | ||
* Highlighted features in 11.2 | ||
* </h3> | ||
* ``` | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
export function table_it(input: string): string; | ||
export function bumpHeads(input: string): string; | ||
/** | ||
* Replaces <span class="keycap"> elements with <kbd> tags | ||
* | ||
* Before: | ||
* | ||
* ```html | ||
* <span class="keycap"> | ||
* <strong>Tab</strong> | ||
* </span> | ||
* ``` | ||
* | ||
* After: | ||
* | ||
* ```html | ||
* <kbd class="keycap"> | ||
* Tab | ||
* </kbd> | ||
* </rh-code-block> | ||
* ``` | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
export function turnKeys(input: string): string; | ||
/** | ||
* Handler for `console.log` invocations. | ||
@@ -190,3 +230,4 @@ * | ||
readonly preclude: (a: number, b: number, c: number) => void; | ||
readonly table_it: (a: number, b: number, c: number) => void; | ||
readonly bumpHeads: (a: number, b: number, c: number) => void; | ||
readonly turnKeys: (a: number, b: number, c: number) => void; | ||
readonly __wbg_wasmbindgentestcontext_free: (a: number) => void; | ||
@@ -193,0 +234,0 @@ readonly wasmbindgentestcontext_new: () => number; |
@@ -355,6 +355,23 @@ let wasm; | ||
/** | ||
* "Replaces all <h*> tags with the next level down in the hierarchy for single-page Docs HTML files | ||
* | ||
* Before: | ||
* | ||
* ```html | ||
* <h2 class="subtitle"> | ||
* Highlighted features in 11.2 | ||
* </h2> | ||
* ``` | ||
* | ||
* After: | ||
* | ||
* ```html | ||
* <h3 class="subtitle"> | ||
* Highlighted features in 11.2 | ||
* </h3> | ||
* ``` | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
export function table_it(input) { | ||
export function bumpHeads(input) { | ||
let deferred2_0; | ||
@@ -366,3 +383,3 @@ let deferred2_1; | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.table_it(retptr, ptr0, len0); | ||
wasm.bumpHeads(retptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -379,2 +396,43 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
/** | ||
* Replaces <span class="keycap"> elements with <kbd> tags | ||
* | ||
* Before: | ||
* | ||
* ```html | ||
* <span class="keycap"> | ||
* <strong>Tab</strong> | ||
* </span> | ||
* ``` | ||
* | ||
* After: | ||
* | ||
* ```html | ||
* <kbd class="keycap"> | ||
* Tab | ||
* </kbd> | ||
* </rh-code-block> | ||
* ``` | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
export function turnKeys(input) { | ||
let deferred2_0; | ||
let deferred2_1; | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.turnKeys(retptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
deferred2_0 = r0; | ||
deferred2_1 = r1; | ||
return getStringFromWasm0(r0, r1); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1); | ||
} | ||
} | ||
let cachedUint32Memory0 = null; | ||
@@ -471,3 +529,3 @@ | ||
function __wbg_adapter_66(arg0, arg1, arg2, arg3, arg4) { | ||
function __wbg_adapter_67(arg0, arg1, arg2, arg3, arg4) { | ||
wasm.wasm_bindgen__convert__closures__invoke3_mut__h0447a6171739fea3(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4)); | ||
@@ -483,3 +541,3 @@ } | ||
} | ||
function __wbg_adapter_79(arg0, arg1, arg2, arg3) { | ||
function __wbg_adapter_80(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h093690349a7b7ab2(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
@@ -744,3 +802,3 @@ } | ||
try { | ||
return __wbg_adapter_66(a, state0.b, arg0, arg1, arg2); | ||
return __wbg_adapter_67(a, state0.b, arg0, arg1, arg2); | ||
} finally { | ||
@@ -774,3 +832,3 @@ state0.a = a; | ||
try { | ||
return __wbg_adapter_79(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_80(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -797,3 +855,3 @@ state0.a = a; | ||
}; | ||
imports.wbg.__wbindgen_closure_wrapper176 = function(arg0, arg1, arg2) { | ||
imports.wbg.__wbindgen_closure_wrapper178 = function(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 57, __wbg_adapter_18); | ||
@@ -800,0 +858,0 @@ return addHeapObject(ret); |
@@ -7,3 +7,3 @@ { | ||
"description": "A WebAssembly build of Mimir transforms, suitable for use in Nodejs and browsers.", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
2745647
1090