Commit graph

108 commits

Author SHA1 Message Date
BearToCode
bafc86d8d3 fix: handle caret endings in Markdown component
fix: #56
2024-04-28 15:46:51 +02:00
BearToCode
7e4a387523 docs: update docs, add migration guide 2024-04-12 08:24:46 +02:00
BearToCode
342c8d24d0 feat: use unified+rehype for parsing markdown
`marked` has been replaced with a more modern setup involving Unified JS, Rehype and various
plugins.

BREAKING CHANGE: Replaced `marked` with `unified` and `rehype`
2024-04-12 08:24:46 +02:00
BearToCode
b30b2af6d9 fix: default theme placeholder color 2024-04-12 08:24:46 +02:00
BearToCode
c6a81acedd fix: default theme caret color 2024-04-12 08:24:46 +02:00
BearToCode
24be57a10f refactor: require explicit disabling of sanitizer
BREAKING CHANGE: Require `sanitizer` to be provided in the options. To disable it, set it explicitly
to `false`.
2024-04-12 08:24:46 +02:00
BearToCode
eb647b416f refactor: do not store options inside Carta
BREAKING CHANGE: Remove `Carta.options`. Update API
2024-04-12 08:24:46 +02:00
BearToCode
ae15b5b590 feat: use shiki for syntax highlighting
Remove Speed-Syntax Highlight, as the newer versions stopped working, and use ShikiJS instead. Also
has better syntax and more languages supported.

BREAKING CHANGE: Replace SHJ with ShikiJS, removed old themes and added new ones.
2024-04-12 08:24:46 +02:00
BearToCode
6e9cb68141 wip: use shiki for highlighting 2024-04-12 08:24:45 +02:00
BearToCode
f0abf195b8 refactor: remove verbose prefixes
Remove "Carta" prefixes from various interface/components.

BREAKING CHANGE: Different objects have been renamed
2024-04-12 08:24:37 +02:00
BearToCode
aeac8073b3 fix: icons oveflows 2024-03-19 18:37:42 +01:00
BearToCode
e430bf035a feat: add icons menu
Add a collapsable icons menu to the toolbar

fix #42
2024-03-19 15:16:54 +01:00
maisonsmd
4693658089 feat(cartaeditor): add tooltip on quick toolbar icon buttons
add tooltip on quick toolbar icon buttons
2024-01-18 10:39:51 +07:00
BearToCode
dc270ffce9 fix(accessibility): better tab support, allow editor unfocus by using tab 2023-12-17 12:01:57 +01:00
BearToCode
68350779f6 feat(accessibility): arrow keys navigation, add aria-roles
fix #22
2023-12-17 12:01:46 +01:00
BearToCode
56e1572a75 chore: add aria labels to icons 2023-12-17 12:01:15 +01:00
Davide
1b75fe794e
feat: add custom labels support (#23)
* feat: add custom labels
* build: pin prettier to v3.1.0
2023-12-16 23:23:38 +01:00
BearToCode
661cd137d9 feat: add textarea property to allow additional textarea properties
fix #26
2023-12-09 11:15:46 +01:00
Christopher Carson
f7f49a513a added type="button" to the tab buttons 2023-12-08 10:35:51 -06:00
BearToCode
a0325eb73d style: format files using new prettier version 2023-11-19 12:04:11 +01:00
BearToCode
08d52652d1 style: update prettier 2023-11-19 12:04:11 +01:00
BearToCode
c063d314d6 fix(core): correct carta viewer class 2023-11-16 18:59:02 +01:00
BearToCode
be8a860bcb fix(core): teleported elements theme class 2023-11-15 21:43:39 +01:00
BearToCode
b187a6a904 fix(core): keep history state when reloading input 2023-11-15 21:26:52 +01:00
BearToCode
a61e04987c refactor(core): use local highlighting rules 2023-11-15 20:43:21 +01:00
BearToCode
4cdd7ed551 fix: custom markdown not correctly loaded 2023-11-15 19:17:38 +01:00
BearToCode
cf623603b6 fix(core): lost of elements reference on input change 2023-11-14 22:27:32 +01:00
BearToCode
b070f5dbe2 fix(core): allow any html element as portal for bindToCaret 2023-11-14 21:15:22 +01:00
BearToCode
e52e12f7f1 fix(core): correct row height calculation 2023-11-14 20:51:22 +01:00
BearToCode
e14f9fc666 fix(core): wrong caret elements positioning 2023-11-14 19:13:25 +01:00
BearToCode
0d7442aff6 feat(core): add bindToCaret action 2023-11-14 15:05:54 +01:00
BearToCode
0b9606e6cb refactor: use consistent file name for default styles 2023-11-11 11:19:52 +01:00
BearToCode
c70f1f9c25 fix: set correct role attribute 2023-11-07 12:13:26 +01:00
BearToCode
f48dcb916e fix: add aria-role 2023-11-07 12:09:49 +01:00
BearToCode
49aeafb4c8 build: replace eslint-plugin-svelte3 with eslint-plugin-svelte 2023-11-07 12:05:05 +01:00
BearToCode
e3a3a90fa4 build(core): remove marked-mangle and gfmheadingids
BREAKING CHANGE: Remove `marked-mangle` and `marked-gfm-heading-id` along with their corresponding
carta options
2023-11-07 11:46:11 +01:00
BearToCode
c1f9e1e95b fix(core): place additional icons after default ones 2023-10-26 18:25:49 +02:00
BearToCode
72bd37aa44 feat(core): add element() to Carta 2023-10-26 17:59:44 +02:00
BearToCode
8cfa26f86b expose a way to load custom markdown definition 2023-10-17 19:10:33 +02:00
BearToCode
8ba7e74cf2 replace cartaRed and shjRef with onLoad 2023-09-10 14:20:35 +02:00
BearToCode
7ad917e23f Merge branch 'master' into dev 2023-08-16 20:26:29 +02:00
BearToCode
e259a93d4b add api for binding elements to caret 2023-08-16 20:14:43 +02:00
BearToCode
15593eca82 add placeholder text options for editor 2023-08-11 19:43:15 +02:00
BearToCode
a155e139c0 move preview components after rendered html 2023-08-11 19:32:52 +02:00
BearToCode
cf43b941c0 only load preview components if mounted 2023-08-10 21:21:49 +02:00
BearToCode
620532e261 add preview options for components 2023-08-10 21:14:42 +02:00
BearToCode
5cdbb71ee2 fix async and hooks not working together 2023-08-06 21:21:43 +02:00
BearToCode
680c0bce8c fix deprecated warnings for marked mangle and header ids 2023-08-06 16:23:50 +02:00
BearToCode
c14058287e remove @types/marked 2023-08-05 16:55:34 +02:00
BearToCode
652a08a1ab add custom event node compatibilty 2023-08-05 16:01:26 +02:00