Steven H
bf3d2032ab
Avoid crashing Cloudflare Worker when syntax highlighting too many lines of code. ( #2283 )
2024-04-15 11:57:22 +01:00
Samy Pessé
0d99906774
Fix crash with concurrent loading of shiki syntaxes ( #2235 )
2024-03-26 11:30:38 +01:00
Samy Pessé
44983f8495
Minor perf improvements to code block highlighting ( #323 )
...
* Use a singleton map when loading languages
* typing
* Lint
* Remove one trace
2024-03-22 16:43:22 +01:00
Greg Bergé
c87197bb98
Replace shikiji by shiki ( #297 )
2024-03-18 15:11:22 +01:00
Samy Pessé
c8935c62c8
Fix code block highlighting crashing when containing \r ( #205 )
2024-03-05 11:15:58 +01:00
Samy Pessé
46b3e461dd
Fix code block highlighting resulting in shared promises ( #195 )
...
* Fix code block highlighting resulting in shared promises
* Lint
* Fix tests
2024-02-28 10:44:47 +01:00
Samy Pessé
05de8109bb
Fix crash for some code blocks with annotations ( #190 )
...
* Start
* Add failing test
* Better handle nested tokens
* Run tests in CI
* Comment
* Fix another case
2024-02-27 11:03:51 +01:00
Sebastian Graz
9e0aabc8bd
Styling PR 4 ( #24 )
...
* add space to expandable, reduce shadow
* temp animation
* little better anims
* v1 stagger
* add opacity-0 back
* fix opacity on header
* overlay fix opacity
* fix chevron shrink
* style summary arrow
* search button add transition
* style hint custom anchor colors
* Commit
* image border
* fix text color hints
* fix code & code within hints
* annotation pass
* clean up
* setup before iconwork
* simplify hint animations
* allow heading sizes in hints, fix global outline
* fix arrows pagefooter
* increase hitarea arrow
* style ol ul
* v1 checkbox
* toc motion speed
* link legibility, move header links to end, anchor underline
* table pass for busy content
* better table defaults
* v1 table side scroller
* only show on threshold
* format
2023-12-11 20:21:18 +01:00
Samy Pessé
860bc02aa8
Fix code highlighting in Cloudflare ( #27 )
...
* Try calling WebAssembly.instantiate directly
* Load from shikiji/onig.wasm instead
2023-12-11 13:43:30 +01:00
Samy Pessé
e880bce80b
Fallback to plain code block if syntax is not found ( #26 )
...
* Fallback to plain code block if syntax is not found
* Try with shikiji instead
* Fix css variables
* Try calling loadWasm
* Support highlighting for all languages of shikiji
* Remove shiki
* Install vscode-oniguruma
* Run bun
2023-12-11 13:23:21 +01:00
Samy Pessé
bb8b039c1a
Code blocks ( #10 )
...
* Remove added line
* Improve gutter and prepare wrap
* Style layout of code blocks
* Start rendering annotation
* Test serverComponentsExternalPackages
* Directly import theme
* Use Tailwind with shiki
* Prepare idea on how to lazy load languages
* Start better matching with inlines
* Make test work
* Start loading more languages
* Start annotations
* Format
* Fix multiple lines
* bun install
2023-11-26 23:49:04 +01:00
Samy Pessé
cdddebb931
Start using dynamic color for primary
2023-11-03 22:14:29 -04:00
Samy Pessé
80e4d7186c
Better type and implement start of cards
2023-10-30 15:45:31 -04:00
Samy Pessé
3cb826de96
Start highlighting of code blocks
2023-10-24 13:36:32 +02:00