Commit Graph

65 Commits (4e548f542469a366f327cdef1530bdb1a31542ad)

Author SHA1 Message Date
Divyansh Singh 4e548f5424 fix: simplify lang extraction logic; use markdown-it plugins in type-safe manner; bump deps
3 weeks ago
Bjorn Lu bf2715ed67
feat: prevent `$` symbol selection in shell code (#5025)
3 weeks ago
Elecmonkey 3d61619ec0
feat(markdown): support custom display-name for fenced code blocks (#4960)
2 months ago
Divyansh Singh 19faa16169 feat: add dir=ltr by default on code block pre elements instead of relying on css
8 months ago
Divyansh Singh db58af5c66
fix!: don't remove shiki styles from `pre` and remove unnecessary transformers (#4652)
8 months ago
Divyansh Singh 06ae2bf3a4 fix(build/regression): langAlias not working
9 months ago
Anthony Fu 52c2aa178d
feat: update to shiki v3 (#4571)
10 months ago
Anthony Fu 1969cf4f3b
fix: upgrade shiki, remove embedded languages workaround (#4566)
10 months ago
Anthony Fu 80622356f1
feat: use `markdown-it-async`, remove `synckit` (#4507)
10 months ago
Divyansh Singh 373f9b933e chore!: bump shiki to v2
11 months ago
Divyansh Singh fc92a77a5d fix: lazy load language definition on twoslash too
1 year ago
Divyansh Singh 4dac35fc9e fix: (temporary patch) lang lazy load not working with twoslash
1 year ago
Divyansh Singh dcb8450f11 fix: typo in missing language check
1 year ago
Divyansh Singh 829977876a
perf: lazy load shiki languages (#4326)
1 year ago
Estéban 45968cdc50
fix: cache markdown it instance and properly dispose shiki on config reload (#4321)
1 year ago
Heptazhou 2ac64b8d41
fix: `vueRE` conflicting with `lineNoRE` (#4247)
1 year ago
Chris 256d742b73
chore: replace deprecated code (#4057)
1 year ago
Azat S cb308b9295
fix(a11y): make code blocks accessible with keyboard (#3902)
2 years ago
Anthony Fu 1d16a85fdf
chore: upgrade to shiki rc (#3550)
2 years ago
Anthony Fu b8487d3a97
feat: rename shiki packages (#3506)
2 years ago
Divyansh Singh 5dab5e3ced refactor: simplify line filling a bit
2 years ago
Divyansh Singh 176c4008c5 refactor: make conditions more robust
2 years ago
Divyansh Singh 1c9f2aa8e4 refactor: use hast transform instead of regex for filling lines
2 years ago
Divyansh Singh 563020ba61 fix: fill all empty code lines
2 years ago
Divyansh Singh 621254300d
chore: bump deps (#3390)
2 years ago
Anthony Fu d12e23ddf6
feat: expose `shikijiSetup` hook (#3344)
2 years ago
Anthony Fu 00eec7a4ef
chore: use transformer to clean-up highlight result (#3343)
2 years ago
Anthony Fu 8800195457
feat: update shikiji, support twoslash (#3339)
2 years ago
Divyansh Singh 33ce7e4478 fix: merge bundledLanguages with user provided languages for less breakage
2 years ago
Anthony Fu 75f18e4733
feat: migrate to shikiji (#3237)
2 years ago
Divyansh Singh 6f2a2af1ff chore: fix types
2 years ago
Divyansh Singh aa40cecd48 fix(build): don't show missing lang warnings with text specifiers in fences
2 years ago
Divyansh Singh 5bb6bb0a14 fix(build): indentation being lost in code blocks
2 years ago
mehm8128 0cd87b1baf
fix: customizing the starting line number even if globally set (#2941)
2 years ago
fan1312 c0ce7f723e
feat: support for customizing the starting line number in a code block (#2917)
2 years ago
Damien Guard 00dc1e6742
feat: allow customizing markdown renderer used for local search indexing (#2770)
2 years ago
Divyansh Singh d0f0012aea
feat(theme): support light shiki themes (#2319)
3 years ago
Divyansh Singh a681fd11e3
fix(build): remove extra line at end of code blocks (#2191)
3 years ago
Alois Klink ac953ce8bd
fix(build): skip warning for `txt` language (#2109)
3 years ago
Evan You 3b6a6d1abd feat(theme): a11y improvements
3 years ago
Evan You 9708510cbd fix: fix line higlighting for empty lines
3 years ago
Juan Martín Seery 5a6d384952
feat(build): add support for custom languages (#1837)
3 years ago
CHOYSEN a00bb62143
feat(build): use vite logger (#1899)
3 years ago
Q.Ben Zheng f9743816a5
feat(shiki): support `ansi` code highlight (#1878)
3 years ago
Divyansh Singh 08e07d643d
chore: bump deps (#1853)
3 years ago
Divyansh Singh 99ad162fb7 fix(build): don't warn on blank lang in fences
3 years ago
Clark Cui 1ae0596939
feat(build): don't hard fail on unknown languages in fences (#1750)
3 years ago
Divyansh Singh 3b7ff8d66e
feat(build): support interpolation inside code blocks (#1759)
3 years ago
Divyansh Singh ce9467e389
fix(build): handle `-` in title of code blocks with line highlighting (#1743)
3 years ago
Divyansh Singh c048076370
feat(build): fence-level config for line-numbers (#1733)
3 years ago