Repository navigation
0.4.0 - Dark theme and full screen
·
23 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Dark theme, full screen, and an option to turn the Markdown shortcuts off. No breaking changes: the new toolbar item is on as soon as you update, the dark colors only when your page sets color-scheme.
Added
- Editor option
markdownShortcuts(defaulttrue):falseturns the Markdown shortcuts off, so#,>,*and the other Markdown characters are typed as text. Also a prop of the React, Vue and Svelte components. - Dark theme: every color of the toolbar, of the popovers and of
content.csshas a dark value, used when the page setscolor-scheme: dark(orlight darkto follow the system). Withoutcolor-scheme, and in browsers withoutlight-dark(), nothing changes. The gap cursor takes the color of the text. - Toolbar item
fullscreen, last in the default toolbar: the element that holds the toolbar and the editor fills the browser window, over the whole page (the browser's top layer, through the Popover API; older browsers:--stilo-z-fullscreen). Only the text scrolls: the toolbar and the status bar stay at the top and the bottom, with or withoutsticky. Esc in the editor leaves full screen, and the page scrolls back where it was. Meanwhile the page does not scroll and shows no scrollbar (classstilo-fullscreen-pageon<html>).ToolbarContextgainstoggleFullscreen()andisFullscreen(), andisActiveof a custom button receives the context as second argument.