Repository navigation
fix(docs): make the screenshots render on the npm page - #34
Merged
Merged
Conversation
npm does not resolve a README's relative image paths, so the two screenshots worked on GitHub and were broken on npmjs.com. They are absolute `raw.githubusercontent.com` URLs now, which both renderers can fetch. The images also leave the package's `files`: the README fetches them from the repository, so shipping a second copy only made the tarball bigger. 894 KB to 181 KB.
TecFancy
added a commit
that referenced
this pull request
Nov 18, 2026
* ci(release): publish to npm with Trusted Publishing instead of a token (#25) * chore: release v0.3.3 (#27) No functional change since v0.3.2: the only commits after it are the npm Trusted Publishing migration (#25, #26), which touches the release workflow and AGENTS.md and neither ships in the package. This release exists to validate the new OIDC publisher before its two-day configuration window expires. * fix: rebuild raw <details>/<summary> in md-to-html instead of echoing them The raw-HTML branch passed `<details ...>` / `<summary ...>` lines and the whole block body through verbatim, so `<details ontoggle=... open>`, `<summary onclick=...>` or an `<img onerror=...>` inside the block reached the generated page. deeptutor_run feeds model and web-search output into this converter, so that content is untrusted. The tags are now rebuilt: attributes are dropped (only a bare `open` is kept), summary text goes through inline() so it is escaped first, and the block body is parsed as Markdown, which escapes any HTML in it and also renders fences, lists and bold that used to show as literal text. * chore: release v0.3.4 (#30) Ships the html-doc XSS fix (#29): md-to-html rebuilds raw <details>/<summary> tags without attributes and parses the block body as Markdown instead of echoing it into the generated page. * chore: add the MIT LICENSE file the package already declared (#32) package.json has said "license": "MIT" since the first release, but the repository carried no LICENSE file, so the npm tarball and the GitHub page both left the terms unstated. Add the file, ship it in the package, and point both READMEs at it. * fix(docs): make the screenshots render on the npm page (#34) npm does not resolve a README's relative image paths, so the two screenshots worked on GitHub and were broken on npmjs.com. They are absolute `raw.githubusercontent.com` URLs now, which both renderers can fetch. The images also leave the package's `files`: the README fetches them from the repository, so shipping a second copy only made the tarball bigger. 894 KB to 181 KB.
TecFancy
added a commit
that referenced
this pull request
Nov 19, 2026
npm does not resolve a README's relative image paths, so the two screenshots worked on GitHub and were broken on npmjs.com. They are absolute `raw.githubusercontent.com` URLs now, which both renderers can fetch. The images also leave the package's `files`: the README fetches them from the repository, so shipping a second copy only made the tarball bigger. 894 KB to 181 KB.
TecFancy
added a commit
that referenced
this pull request
Nov 19, 2026
* ci(release): publish to npm with Trusted Publishing instead of a token (#25) * chore: release v0.3.3 (#27) No functional change since v0.3.2: the only commits after it are the npm Trusted Publishing migration (#25, #26), which touches the release workflow and AGENTS.md and neither ships in the package. This release exists to validate the new OIDC publisher before its two-day configuration window expires. * fix: rebuild raw <details>/<summary> in md-to-html instead of echoing them The raw-HTML branch passed `<details ...>` / `<summary ...>` lines and the whole block body through verbatim, so `<details ontoggle=... open>`, `<summary onclick=...>` or an `<img onerror=...>` inside the block reached the generated page. deeptutor_run feeds model and web-search output into this converter, so that content is untrusted. The tags are now rebuilt: attributes are dropped (only a bare `open` is kept), summary text goes through inline() so it is escaped first, and the block body is parsed as Markdown, which escapes any HTML in it and also renders fences, lists and bold that used to show as literal text. * chore: release v0.3.4 (#30) Ships the html-doc XSS fix (#29): md-to-html rebuilds raw <details>/<summary> tags without attributes and parses the block body as Markdown instead of echoing it into the generated page. * chore: add the MIT LICENSE file the package already declared (#32) package.json has said "license": "MIT" since the first release, but the repository carried no LICENSE file, so the npm tarball and the GitHub page both left the terms unstated. Add the file, ship it in the package, and point both READMEs at it. * fix(docs): make the screenshots render on the npm page (#34) npm does not resolve a README's relative image paths, so the two screenshots worked on GitHub and were broken on npmjs.com. They are absolute `raw.githubusercontent.com` URLs now, which both renderers can fetch. The images also leave the package's `files`: the README fetches them from the repository, so shipping a second copy only made the tarball bigger. 894 KB to 181 KB.
TecFancy
added a commit
that referenced
this pull request
Nov 22, 2026
* ci(release): publish to npm with Trusted Publishing instead of a token (#25) * chore: release v0.3.3 (#27) No functional change since v0.3.2: the only commits after it are the npm Trusted Publishing migration (#25, #26), which touches the release workflow and AGENTS.md and neither ships in the package. This release exists to validate the new OIDC publisher before its two-day configuration window expires. * fix: rebuild raw <details>/<summary> in md-to-html instead of echoing them The raw-HTML branch passed `<details ...>` / `<summary ...>` lines and the whole block body through verbatim, so `<details ontoggle=... open>`, `<summary onclick=...>` or an `<img onerror=...>` inside the block reached the generated page. deeptutor_run feeds model and web-search output into this converter, so that content is untrusted. The tags are now rebuilt: attributes are dropped (only a bare `open` is kept), summary text goes through inline() so it is escaped first, and the block body is parsed as Markdown, which escapes any HTML in it and also renders fences, lists and bold that used to show as literal text. * chore: release v0.3.4 (#30) Ships the html-doc XSS fix (#29): md-to-html rebuilds raw <details>/<summary> tags without attributes and parses the block body as Markdown instead of echoing it into the generated page. * chore: add the MIT LICENSE file the package already declared (#32) package.json has said "license": "MIT" since the first release, but the repository carried no LICENSE file, so the npm tarball and the GitHub page both left the terms unstated. Add the file, ship it in the package, and point both READMEs at it. * fix(docs): make the screenshots render on the npm page (#34) npm does not resolve a README's relative image paths, so the two screenshots worked on GitHub and were broken on npmjs.com. They are absolute `raw.githubusercontent.com` URLs now, which both renderers can fetch. The images also leave the package's `files`: the README fetches them from the repository, so shipping a second copy only made the tarball bigger. 894 KB to 181 KB.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm does not resolve a README's relative image paths, so the two screenshots worked on GitHub and were broken on npmjs.com. They are absolute
raw.githubusercontent.comURLs now, which both renderers can fetch.The images also leave the package's
files: the README fetches them from the repository, so shipping a second copy only made the tarball bigger. 894 KB to 181 KB.Same fix as TecFancy/dsh-lingualab#4.
npm run typecheckclean,npm test85 pass / 0 fail / 3 skipped.