* fix(markdown): 单个波浪号不再被解析成删除线 GFM 会把区间标记(如 2020~2035)里的单个 `~` 误解析成删除线。 覆盖 marked 的 del tokenizer:`~~...~~` 仍走默认删除线规则, 单个 `~` 则按字面保留;并新增单测覆盖时间/区间场景。 * fix(markdown): register the literal single-tilde tokenizer once doc-content.vue and WikiBrowser.vue called marked.use() for the del tokenizer override inside <script setup>, so every mount wrapped the global marked tokenizer one more time. Move the extension into utils/markedLiteralTilde.ts and register it on the global marked behind a once-only guard; the preview Marked instance reuses the same extension object. Add a test that repeated registration does not re-wrap tokenizer.del. --------- Co-authored-by: wizardchen <wizardchen@tencent.com> |
||
|---|---|---|
| .. | ||
| api | ||
| assets | ||
| components | ||
| composables | ||
| config | ||
| directives | ||
| hooks | ||
| i18n | ||
| router | ||
| stores | ||
| types | ||
| utils | ||
| views | ||
| wailsjs | ||
| App.vue | ||
| embed-main.ts | ||
| main.ts | ||