James ZHANG
aadc517c69
fix: don't hardcode `tabindex` attr in table renderer ( #4082 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
9 months ago
Divyansh Singh
a8a1800ae5
fix: ignore non-text content in permalink generation and fix types of markdown.config
9 months ago
Divyansh Singh
1a6684cf10
feat: improve region regexes for snippet plugin
9 months ago
Divyansh Singh
f6243d1f3f
chore: ignore emojis too from anchors
10 months ago
Divyansh Singh
68dff2af85
fix(markdown): include content of all tokens in heading ids
...
closes #4561
BREAKING CHANGES: The heading ids might change in some cases if you're using special (non-html) elements in headings. Please update the broken links to fragments if you find any. To revert back to the older behavior you can customize `markdown.anchor.getTokensText`.
10 months ago
Anthony Fu
80622356f1
feat: use `markdown-it-async`, remove `synckit` ( #4507 )
...
BREAKING CHANGES: markdown-it-async is used instead of markdown-it
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
10 months ago
Anthony Fu
4f77b4fdfd
fix(types): support preload built-in shiki languages as string ( #4513 )
10 months ago
Anthony Fu
b88ae8d4a1
feat: allow `markdown.config` and `markdown.preConfig` to accept async function ( #4512 )
10 months ago
Divyansh Singh
36bde803c8
chore: maintenance and cleanup
11 months ago
Estéban
45968cdc50
fix: cache markdown it instance and properly dispose shiki on config reload ( #4321 )
...
This results in over 5x speedup in build times of certain projects. But this comes at the cost of correctness. `createMarkdownRenderer` now ignores any arguments passed by user. But from our GitHub code search we didn't find any user passing options different than their siteConfig to this function. If you are doing that, please open an issue and we can discuss the best way forward.
---
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Divyansh Singh
1143ddf230
chore: bump deps
1 year ago
Jeferson S. Brito
afc611d399
fix(theme,a11y): handle overflow on long mathematical equation and make tables focusable ( #3932 ) ( closes #3914 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Nozomu Ikuta
ed6ada7a68
feat(build/i18n): support customizing copy code button's tooltip text ( #3854 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
620ee6ac4b
chore: bump deps, fix dts generation ( #3856 )
2 years ago
Divyansh Singh
d02d1e923a
fix(build/regression): markdown backslash escapes not working
...
closes #3808
2 years ago
Divyansh Singh
a1ced36553
chore: override text renderer before calling user config
2 years ago
Evan You
f86ac56b78
fix: let vue compiler handle entity decoding
2 years ago
Xinyu Liu
d3dd4bc938
feat: upgrade markdown-it types to v14 ( #3772 )
2 years ago
Divyansh Singh
8f8a6feb05
fix(md): dont break on nesting blockquotes inside gfm alerts
...
closes #3512
2 years ago
Anthony Fu
b8487d3a97
feat: rename shiki packages ( #3506 )
...
BREAKING CHANGE: vitepress now uses shiki instead of shikiji. If you’re on the latest version and using shikiji specific features, you just need to change imports. The shikijiSetup hook is renamed to shikiSetup.
2 years ago
Anthony Fu
ac87d19ca1
feat: support GitHub-flavored alerts ( #3482 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
09e48db355
feat: allow passing options to emoji plugin
...
close #3174
2 years ago
Divyansh Singh
621254300d
chore: bump deps ( #3390 )
2 years ago
烽宁
55be3f14d7
feat: support custom image lazy loading ( #3346 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
2958b8b839
chore: bump deps ( #3345 )
2 years ago
Anthony Fu
d12e23ddf6
feat: expose `shikijiSetup` hook ( #3344 )
2 years ago
Anthony Fu
75f18e4733
feat: migrate to shikiji ( #3237 )
2 years ago
Jason Dai
bdb080093f
feat(md): allow customizing container titles globally ( #3044 )
2 years ago
Divyansh Singh
6f2a2af1ff
chore: fix types
2 years ago
Damien Guard
00dc1e6742
feat: allow customizing markdown renderer used for local search indexing ( #2770 )
...
BREAKING CHANGES: `search.options.exclude` for local search is removed in favor of more flexible `search.options._render`
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
2 years ago
Divyansh Singh
13343c91d9
chore!: change shiki defaults
2 years ago
Divyansh Singh
ce85726c12
feat(build): add `markdown.preConfig` option
...
closes #1382
2 years ago
Divyansh Singh
f60b32f02f
fix(hmr): allow disabling md cache during dev ( #2581 )
2 years ago
Divyansh Singh
d0f0012aea
feat(theme): support light shiki themes ( #2319 )
...
BREAKING CHANGE: Styling for code blocks might break, especially if you were earlier overriding it for light theme. Those workarounds are no longer required. VitePress will now show code blocks and groups in light mode too if a light shiki theme is specified.
3 years ago
Evan You
2bf8df4bae
BREAKING CHANGE: markdown.headers is now disabled by default
3 years ago
Alija Sabic
3355fcc1df
Provide accessible markdown-it-anchor configuration using ZeroWidthSpace (HTML Entity) and custom renderAttrs
3 years ago
Alija Sabic
9a315d8855
Revert "Provide accessible markdown-it-anchor configuration"
...
This reverts commit f8d81e377c .
3 years ago
Alija Sabic
86259682c8
Provide accessible markdown-it-anchor configuration
3 years ago
Evan You
868a9ff81e
feat: allow disabling markdown.headers
3 years ago
Evan You
580a8e1a55
fix: extract all headers by default
3 years ago
Evan You
24507105b1
fix: disable fuzzy link recognition by default
...
this is a bit aggressive and can conflict with Vue template expressions
3 years ago
Juan Martín Seery
5a6d384952
feat(build): add support for custom languages ( #1837 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
CHOYSEN
a00bb62143
feat(build): use vite logger ( #1899 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
8de2f4499d
feat: add i18n feature ( #1339 )
...
fix #291
fix #628
fix #631
fix #902
fix #955
fix #1253
fix #1381
Co-authored-by: Hiroki Okada <hirokio@tutanota.com>
Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
3 years ago
Matteo Bilotta
4ac8c0482f
types: strong separation between `import` and `import type` ( #1756 )
3 years ago
Divyansh Singh
c048076370
feat(build): fence-level config for line-numbers ( #1733 )
3 years ago
xinconan
f40df31947
feat(build): allow specifying default language for syntax highlighter ( #1296 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Divyansh Singh
8cd1f7c4aa
fix(build): use default slugify from mdit-vue ( #1554 )
3 years ago
meteorlxy
45743cb2e3
refactor: remove non-standard markdown-it extensions ( #1240 )
3 years ago
meteorlxy
d700a66e65
feat: support markdown sfc options ( #1238 )
3 years ago