snippets.nativescript.org: raw backticks in “Learn more”, plus no highlighting for native languages, and a truncated title
@NathanWalker 已经在做这个了。
开始于 2026年10月10日。
评估
这个 Issue 还没有评估数据。
描述
Hi, and thank you for the work you put into NativeScript. The snippets site is a genuinely useful resource, and what you're building here matters. ❤️
I found a few rendering problems while using it. I couldn't find where the site's source is hosted (no link on the site, nothing in the NativeScript org or GitHub code search). Otherwise I'd have sent a PR. Please redirect me if there is a better place for this.
“Learn more” shows inline code as literal backticks
For example, https://snippets.nativescript.org/emerald-cascade-ecup and https://snippets.nativescript.org/rose-canvas-m4tp.
They are rendered as plain text (no <code> elements inside the “Learn more” block). Other markdown blocks might also be affected. I couldn't verify it since there were none in the section.
No highlighting for native languages
- https://snippets.nativescript.org/onyx-tide-v9hx is highlighted as TypeScript (?), but the code is in Swift.
Possibly truncated title
- https://snippets.nativescript.org/rose-canvas-m4tp has a title that ends mid-word: “…input-accessory coexiste”. It is exactly 80 characters, and it's the only title that long in the catalog (the next longest is 76), so it may be a hard 80-character cap rather than a typo. I couldn't verify this.
Thanks again for maintaining this.
- 主要语言
- JavaScript
- 星标
- 17
- 派生
- 30
- 平均合并
- 20 小时 47 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/docs 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
NativeScript/docs#177 ·
-
难度 3/5 1-2 天 新手友好度 38/100
NativeScript/docs#189 ·
-
Label: maxLines未关闭
难度 1/5 1 小时以内 新手友好度 48/100
NativeScript/docs#182 ·
-
难度 3/5 1-2 天 新手友好度 45/100
NativeScript/docs#178 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
NativeScript/docs#159 ·
查看 NativeScript/docs 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 88/100
mattabate/life-distributable#231 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
sfbrigade/pocket-gardens#60 ·
维护者通常 5 天内回复
-
The print preview leaves writing space short by the margins of hidden headers, footers and solutions未关闭
难度 2/5 1-3 小时 新手友好度 78/100
PreTeXtBook/pretext#3329 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 84/100
devarshishimpi/codra#178 ·
维护者通常 1 天内回复