Miroma
cb83272074
fix(md)!: include all regions with the same name
...
VitePress supports including a part of a file through a VS Code region.
However, when multiple regions have the same name, only one is included.
The workaround plugin suggested in #3690 is no longer maintained. [^1]
Furthermore, it suffers from a memory leak causing huge RAM usage. [^2]
While we at Fabric Docs have forked the plugin [^3] to fix some issues,
it still feels fragile. Another problem is having to use two different
syntaxes (`<<<` vs `@[]()`) for doing the same thing, causing confusion.
Since this feature has been requested by VitePress directly, I don't
think there's any point in working on the plugin any further.
fix #3690
[^1]: <https://github.com/fabioaanthony/markdown-it-vuepress-code-snippet-enhanced/issues/7 >
[^2]: <https://discord.com/channels/507304429255393322/1208846408552030238/1407245292482330695 > via <https://discord.fabricmc.net/ >
[^3]: <https://github.com/IMB11/md-it-enhanced-snippets >
4 months ago
lilianakatrina684-a11y
202ee70260
fix: keep translation links in the current tab ( #5158 )
4 months ago
Divyansh Singh
fccc617102
feat(markdown): expose Shiki color replacements in markdown options ( #5153 )
5 months ago
Sergio
44e2675889
feat: support text-fragments ( #5140 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
5 months ago
Dylan Tientcheu
0d646a66cd
feat(theme): upgrade DocSearch to 4.5 with sidepanel ( #5092 )
...
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
6 months ago
Divyansh Singh
9238e00c9f
test: add postcssIsolateStyles snapshots
12 months ago
Divyansh Singh
0944777893
feat: make postcssIsolateStyles idempotent
...
BREAKING CHANGE: `includeFiles` option in `postcssIsolateStyles` now defaults to `[/vp-doc\.css/, /base\.css/]` You can remove explicit `includeFiles` if you were using it just to run it on `vp-doc.css`. To revert back to older behavior pass `includeFiles: [/base\.css/]`. The underlying implementation is changed and `transform` and `exclude` options are no longer supported. Use `postcss-prefix-selector` directly if you've advanced use cases.
12 months ago
Alex
a629b03f0e
fix(build): ignore escaped `:` when splitting selector in `postcssIsolateStyles` ( #4830 )
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
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
Divyansh Singh
36bde803c8
chore: maintenance and cleanup
2 years ago
Divyansh Singh
3e11b6abf5
feat: allow ignoring certain headers and their subtrees completely in outline
...
closes #4171
2 years ago
Divyansh Singh
d2238eedb7
feat: switch to vite 5 and bump deps ( #3200 )
...
BREAKING CHANGE: VitePress now runs on Vite 5. Please refer https://vitejs.dev/guide/migration for breaking changes and migration guide if you're relying on some Vite-specific things.
3 years ago
Divyansh Singh
e99aaad9cf
fix(build): handle importing code snippets not having an extension ( #2978 )
3 years ago
Divyansh Singh
52884d9d4b
feat(theme): allow setting base path in sidebar items ( #2734 )
3 years ago
烽宁
c4909e4298
feat(theme): expose `useSidebar` ( #2496 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
3 years ago
Evan You
657a7d38df
fix(theme): re-support dynamic headers
3 years ago
Evan You
1457681484
fix: ensure HMR works properly for page outline
...
The client-side based implementation in #1281 makes HMR update for the
outlines flaky and unreliable.
The headers payload for each page chunk is relatively cheap in return
for the correctness, since they are inlined as a JSON string.
3 years ago
Kia King Ishii
c35a1f0fae
feat(theme): enable multi level sidebar nesting ( #1360 ) ( #1835 )
...
close #1360
close #1361
close #1680
4 years ago
0x009922
7de7fff417
fix(build): dedent of a single-line region ( #1687 )
...
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
4 years ago
Divyansh Singh
ae3ba243b1
tests: refactor ( #1587 )
4 years ago