1.0.2 • Published 8 months ago

@exmg/exm-markdown-editor v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Markdown editor element.

An out of the box customizable Markdown Editor for Exmachina

<exm-markdown-editor markdown="# Header 1"></exm-markdown-editor>

Styling

Custom propertyDescriptionDefault
--exm-markdown-editor-code-colorEditor's text color--md-sys-color-on-surface
--exm-markdown-editor-code-cursor-colorEditor's cursor color--md-sys-color-on-surface
--exm-markdown-editor-code-header-colorH1 color in editor#4a8fc0;
--exm-markdown-editor-code-inline-code-colorInline code color#ea881f
--exm-markdown-editor-code-list-colorLists colorrgb(25, 165, 28)
--exm-markdown-editor-selected-code-colorSelected text colorrgb(140, 140, 140)
--exm-markdown-editor-border-colorEditor's border color--md-sys-color-primary
--exm-markdown-editor-background-colorToolbar and default preview background--md-sys-color-surface-container-high
--exm-markdown-editor-code-background-colorEditor's background color when focused--md-sys-color-surface-container-high

Events:

  • change - where detail is current markdown value
  • insert-image - if the Editor is set to upload, it will trigger this event when the insert-image is clicked