Features
These features are illustrated in our Demo.
@prosemark/core
Section titled “@prosemark/core”-
Inline styles including italics, bold text, code spans, and strike-throughs. Highlights using the
==highlight==syntax are planned. -
Both ATX Headings (
# My Heading) and Setext Headings (headings over a line with=====or-----) are supported. -
Unordered lists using
-and ordered lists using1.are supported. Ordered lists using+are not yet supported. -
Task lists following the
- [ ] My Tasksyntax are supported. -
Images using the
syntax are supported. Setting the image width via GitHub like syntax is planned. -
Block quotes (including nested block quotes) are supported.
-
Horizontal rules using the
---syntax are supported. -
YAML frontmatter blocks at the top of a document (
---…---) are supported and parsed as YAML.
@prosemark/render-html
Section titled “@prosemark/render-html”-
HTML Blocks inside markdown can be rendered. HTML content is sanitized using DOMPurify.
-
Folded HTML blocks use block replace widgets: an outer shell avoids vertical margins (padding only), and an inner
flow-rootwrapper contains margins from rendered elements (for example headings) so CodeMirror’s line layout stays accurate.requestMeasureruns after updates and when the widget resizes (ResizeObserverwhere available). -
Inline HTML is not supported yet.
@prosemark/paste-rich-text
Section titled “@prosemark/paste-rich-text”-
Makes it possible to paste rich text as fully-formatted markdown.
-
Provides the
Ctrl/Cmd+Shift+Vcommand for pasting without formatting.
@prosemark/spellcheck-frontend
Section titled “@prosemark/spellcheck-frontend”-
Does not include a dictionary or spelling engine; you compute
SpellcheckIssueranges (for example with nspell or a remote API) and expose them through thespellcheckIssuesfacet. -
Renders wavy underlines for misspelled ranges and keeps decorations mapped across document edits so ranges stay valid.
-
Shows a tooltip on interaction (including keyboard shortcuts from
spellcheckKeymap): suggestions from the issue and/or from an asyncsuggestionFetcherfacet, plus custom actions viaspellcheckActions(for example “add to word list”).