forked from yzhang-gh/vscode-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix the
github
slugify mode (yzhang-gh#792)
## Summary This commit combines `baec028fcbb0a807da23aeb847ee8e4b539643c0` to `cadab204c2f28ae935498f1dddb5fdc4e3f72766`, and `f9fea764f89cc490f01e890d0a59041868dc9a89` to `2ab1a6ac17635c93aa6b863a856f55cd52e473b3`. * ⬆ Update dependencies * Enable new language features: * ts-loader: 6.2.2 -> 8.0.3 * typescript: 3.5.2 -> 4.0.2 * Improve HTML entities decoding: * entities: 2.0.0 -> 2.0.3 * Improve syntax highlighting when printing: * highlight.js: 9.15.6 -> 10.2.0 * @types/highlight.js: 9.12.3 -> 9.12.4 * Others are just regular upgrades. * 🎨 Refactor function `slugify` * Move all the slugify functions to `slugifyMethods`. * Add a few comments. * 🐛 Perform user-required case conversion before calling slugify function * 🎨 Add type annotations to `markdownEngine.ts` * ✨ Add `CommonmarkEngine` * 🐛 Fix the `github` slugify function * Use `commonmarkEngine.engine.renderInline()`. * Use `entities.decodeHTML()` to decode HTML entities. * Correct `getTextInHtml()`. * Correct `PUNCTUATION_REGEXP`. * Add "Perform full Unicode case conversion". * 🎨 Optimize the `gitlab` slugify function * 🔧 Reorganize vscodeignore * 🔧 Update metadata * `categories`. * Description of configuration. ## Known issues "Printing" may not generate correct heading ID. Failed cases: ```markdown ## `<em>code</em>` ## 😅 ``` The second case is related to `markdown-it-emoji`. See yzhang-gh#809 (comment)
- Loading branch information
Showing
7 changed files
with
470 additions
and
547 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.