Skip to content

Commit 0efa60f

Browse files
authored
Do not post-process < and > symbols generated from docs (#335)
* Do not post-process `<` and `>` symbols generated from docs * Fix typo
1 parent b6bd608 commit 0efa60f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

docs/scripts/generate.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ for (const moduleName of moduleNames) {
5858
// TODO: May need to extend this list
5959
output = output.replace(/\\([|_&*])/gm, '$1');
6060

61-
output = output.replaceAll('&lt;', '&amp;lt;');
62-
output = output.replaceAll('&gt;', '&amp;gt;');
63-
6461
output = output.replaceAll('new exports.', 'new ');
6562

6663
let outputPath = path.resolve(outputDir, `${moduleName}.md`);

src/utils/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class RawImage {
9898
* **Example:** Read image from a URL.
9999
* ```javascript
100100
* let image = await RawImage.read('https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/football-match.jpg');
101-
* // test {
101+
* // RawImage {
102102
* // "data": Uint8ClampedArray [ 25, 25, 25, 19, 19, 19, ... ],
103103
* // "width": 800,
104104
* // "height": 533,

0 commit comments

Comments
 (0)