Divyansh Singh
5df3a548b3
fix(a11y)!: use github-style header anchor generation
...
BREAKING CHANGES:
- `--vp-header-anchor-symbol` is removed
- The default permalink function of markdown-it-anchor is changed to `linkAfterHeader`. This will need updates in your custom themes.
This brings the original proposed behavior of #2039 , #2040 which wasn't introduced to avoid breaking changes.
fixes #2980
closes #2982
1 year ago
James ZHANG
8aad617446
fix: properly merge classes in custom containers ( #4128 )
1 year ago
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>
1 year ago
Divyansh Singh
a8a1800ae5
fix: ignore non-text content in permalink generation and fix types of markdown.config
1 year ago
Divyansh Singh
1a6684cf10
feat: improve region regexes for snippet plugin
1 year ago
John Simons
1a2f81de4d
feat: allow matching region end in snippets without tag ( #4287 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 year ago
Divyansh Singh
e271695d71
fix: hmr not working for watched files in path loaders
...
follow up on #4525
1 year ago
Divyansh Singh
9f54714e7d
fix: rebuild dynamic routes cache on server restart
...
follow up on #4525
1 year ago
Divyansh Singh
d8a884ed0f
fix: prevent reload on first server start in fresh installations
1 year ago
Divyansh Singh
06ae2bf3a4
fix(build/regression): langAlias not working
...
closes #4581
1 year ago
Divyansh Singh
a62ea6a832
feat: dynamic routes plugin overhaul ( #4525 )
...
BREAKING CHANGES: Internals are modified a bit to better support vite 6 and handle HMR more correctly. For most users this won't need any change on their side.
1 year ago
Anthony Fu
52c2aa178d
feat: update to shiki v3 ( #4571 )
1 year ago
Divyansh Singh
4f3f5eac15
chore: resolve srcDir relative to cwd when initializing
1 year ago
Estéban
518c0945f1
feat(cli): support custom `srcDir` ( #4270 )
1 year ago
Estéban
e5a0ee8161
feat(cli): support custom npm scripts prefix ( #4271 )
1 year ago
Anthony Fu
1969cf4f3b
fix: upgrade shiki, remove embedded languages workaround ( #4566 )
1 year ago
Divyansh Singh
b930b8d531
fix: deterministic code group ids ( #4565 )
1 year ago
Divyansh Singh
f6243d1f3f
chore: ignore emojis too from anchors
1 year 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`.
1 year ago
Divyansh Singh
c2ab5b03a8
fix(build): don't destructure pages as it will be updated onFileAddDelete
2 years ago
Divyansh Singh
9b5c0377cd
fix(build): `--minify` not working as documented
...
closes #4523
2 years 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>
2 years ago
Anthony Fu
4f77b4fdfd
fix(types): support preload built-in shiki languages as string ( #4513 )
2 years ago
Anthony Fu
b88ae8d4a1
feat: allow `markdown.config` and `markdown.preConfig` to accept async function ( #4512 )
2 years ago
翠 / green
80d0e0ff70
chore(deps): replace micromatch with picomatch ( #4505 )
2 years ago
翠 / green
6a2efc385c
feat!: upgrade vite to v6 ( #4504 )
2 years ago
Evan You
8214cae21b
fix: fix static content removal for lean chunks due to Vue 3.5 changes ( #4508 )
2 years ago
Divyansh Singh
e8129167c7
fix(build): escape `$` in replace pattern in dynamic routes plugin
...
closes #4499
2 years ago
Divyansh Singh
373f9b933e
chore!: bump shiki to v2
...
BREAKING CHANGE: shiki transformers now use v3 [matching algorithm](https://shiki.style/packages/transformers#matching-algorithm )
2 years ago
Divyansh Singh
36bde803c8
chore: maintenance and cleanup
2 years ago
Divyansh Singh
8ea776addc
fix: respect vite.clearScreen in build
...
- rename router.onAfterRouteChanged to router.onAfterRouteChange to align with naming conventions
- always pass normalized href to router.onAfterRouteChanged
closes #4468
2 years ago
Divyansh Singh
c61182ab27
fix: properly strip vpi-social css declaration in debug mode
2 years ago
Divyansh Singh
8a5e8ea4f5
fix: specify mode for iconify
2 years ago
Divyansh Singh
241d17d983
fix: out of order css in prod builds
...
closes #4098
2 years ago
Divyansh Singh
05f2f0d261
feat: on demand social icons ( #4339 )
2 years ago
Divyansh Singh
fc92a77a5d
fix: lazy load language definition on twoslash too
...
closes #4334
2 years ago
Divyansh Singh
4dac35fc9e
fix: (temporary patch) lang lazy load not working with twoslash
2 years ago
Divyansh Singh
dcb8450f11
fix: typo in missing language check
2 years ago
Divyansh Singh
8f052753de
chore: adjust type cast
2 years ago
Divyansh Singh
829977876a
perf: lazy load shiki languages ( #4326 )
2 years ago
Divyansh Singh
615aed5df7
fix(regression): hmr not working with markdown includes due to wrong cache key
...
closes #4289
closes #4303
2 years ago
Divyansh Singh
acfe97f608
fix: dispose mdit instance on manual restart too
2 years 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>
2 years ago
Divyansh Singh
8436472c78
feat(experimental): support passing function for rewrites ( #4274 )
2 years ago
Heptazhou
b46d6d3a20
fix: broken rewrites on windows ( #4268 )
2 years ago
Divyansh Singh
1143ddf230
chore: bump deps
2 years ago
Heptazhou
2ac64b8d41
fix: `vueRE` conflicting with `lineNoRE` ( #4247 )
2 years ago
Cristopher
cb1106d2ce
chore(deps): replace fast-glob with tinyglobby ( #4132 )
2 years ago
Thy
e8f7dd16f6
feat: support adding extra attributes to snippet imports (useful for twoslash) ( #4100 )
2 years ago
Leo
bc7271d258
feat: add `data-title` attribute for code group label tag ( #4152 )
2 years ago