Do not post-process `<` and `>` symbols generated from docs (#335)
* Do not post-process `<` and `>` symbols generated from docs * Fix typo
This commit is contained in:
parent
b6bd608322
commit
0efa60ffff
|
@ -58,9 +58,6 @@ for (const moduleName of moduleNames) {
|
|||
// TODO: May need to extend this list
|
||||
output = output.replace(/\\([|_&*])/gm, '$1');
|
||||
|
||||
output = output.replaceAll('<', '&lt;');
|
||||
output = output.replaceAll('>', '&gt;');
|
||||
|
||||
output = output.replaceAll('new exports.', 'new ');
|
||||
|
||||
let outputPath = path.resolve(outputDir, `${moduleName}.md`);
|
||||
|
|
|
@ -98,7 +98,7 @@ export class RawImage {
|
|||
* **Example:** Read image from a URL.
|
||||
* ```javascript
|
||||
* let image = await RawImage.read('https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/football-match.jpg');
|
||||
* // test {
|
||||
* // RawImage {
|
||||
* // "data": Uint8ClampedArray [ 25, 25, 25, 19, 19, 19, ... ],
|
||||
* // "width": 800,
|
||||
* // "height": 533,
|
||||
|
|
Loading…
Reference in New Issue