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 theme setting uses another theme instead of the default one: a folder, or an installed theme package.
  • Themes can describe themselves in an edahatheme.yml file with their name, description, version and authors.
  • Core has new theme helpers, resolveTheme, readThemeInfo, parseThemeInfo, isThemePath and packageAuthor, 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.
  • startEditor has hideTitle and hideThemeSwitcher options, 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.
  • EditorApi takes a baseUrl, 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 a dirty property, and startEditor’s server has a fetch function 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’ disc and circle list styles now use the same bullets as nested HTML lists: disc is • and circle is ◦.

Fixed

  • The editor’s page no longer scrolls down and leaves a gap under it while you edit an article.