edaha.md v0.4.0 has been released! There is also work in parallel on some future delights that will hopefully make maintaining a website very easy, especially for non-technical people.
Added
- The default theme is now its own package,
@lvl99dotcom/edaha-theme-default, which edaha.md installs for you. - The new
themesetting uses another theme instead of the default one: a folder, or an installed theme package. - Themes can describe themselves in an
edahatheme.ymlfile with their name, description, version and authors. - Core has new theme helpers,
resolveTheme,readThemeInfo,parseThemeInfo,isThemePathandpackageAuthor, for tools that manage themes. - The editor’s nav has a Home link under the search, which shows the welcome prompt.
- The editor’s rich text and Markdown toolbars have underline and strikethrough buttons, after italic.
startEditorhashideTitleandhideThemeSwitcheroptions, for apps that show the editor in their own window.- The editor is published as the
<edaha-editor>web component, in@lvl99dotcom/edaha-editor/client, with its stylesheet and design tokens, so apps can show it in their own pages. EditorApitakes abaseUrl, so the editor can use an editor server that isn’t its page’s own, showing articles’ files, images and previews from it.<edaha-editor>has adirtyproperty, andstartEditor’s server has afetchfunction that answers the editor’s requests without the network.- The docs explain using another theme and making your own.
Changed
- edaha.md’s website is now at https://edaha.md.
- Lit and Tiptap are now dependencies of
@lvl99dotcom/edaha-editor, as apps that show the editor’s component install them. - The table of contents’
discandcirclelist styles now use the same bullets as nested HTML lists:discis • andcircleis ◦.
Fixed
- The editor’s page no longer scrolls down and leaves a gap under it while you edit an article.