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:
Joshua Lochner 2023-10-04 15:43:35 +02:00 committed by GitHub
parent b6bd608322
commit 0efa60ffff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -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;', '&amp;lt;');
output = output.replaceAll('&gt;', '&amp;gt;');
output = output.replaceAll('new exports.', 'new ');
let outputPath = path.resolve(outputDir, `${moduleName}.md`);

View File

@ -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,