Markdown & Editor

Renderize markdown no estilo GitHub como texto formatado e edite-o com barra de ferramentas, pré-visualização ao vivo e visualização dividida.

Disponível em
  • Angular: disponível
  • Vue: disponível
  • React: disponível
  • React Native: ainda não disponível

Uso

Planning sync with Ada Park and Leo Ruiz.

  • Cut the onboarding checklist to five steps

  • Ship it behind the short-onboarding flag

  • Draft the invite copy

  • Legal review by Friday

Importação

ts
import {
  SoneFloatingDockDirective,
  SoneMarkdownComponent,
  SoneMarkdownEditorComponent,
  SoneMarkdownEditorFooterDirective,
  SoneMarkdownEditorToolsDirective,
  SoneMarkdownPreviewDirective,
} from "@surface-one/angular/markdown";

Referência da API

SoneFloatingDockDirectiveDiretiva

Seletor
[soneFloatingDock]
Inputs
NomeTipo Padrão
soneFloatingDockbooleanfalse
floatingDockAnchorobrigatórioHTMLElement—

SoneMarkdownComponentComponente

Seletor
sone-markdown
Inputs
NomeTipo Padrão
sourcestring | null | undefined""
sizeMarkdownSize"default"
breaksbooleantrue

SoneMarkdownEditorComponentComponente

Seletor
sone-markdown-editor
Exportado como
soneMarkdownEditor
Inputs
NomeTipo Padrão
valuebidirecionalstring""
modebidirecionalMarkdownEditorMode"edit"
appearanceMarkdownEditorAppearance"field"
toolbarMarkdownEditorToolbar"full"
stickyToolbarbooleanfalse
toolbarPlacementMarkdownEditorToolbarPlacement"top"
focusFramebooleantrue
tabsbooleantrue
minRowsnumber4
ariaLabelstring | nullnull
ariaLabelledbystring | nullnull
ariaDescribedbystring | nullnull
maxlengthnumber | nullnull
placeholderstring""
spellcheckbooleantrue
autocapitalizestring"sentences"
readonlybooleanfalse
busybooleanfalse
invalidbooleanfalse
textareaClassstring""
livebooleanfalse
imageSourceMarkdownImageResolver | nullnull
shortcutsbooleantrue
continueListsbooleantrue
Outputs
NomeTipo
editorInputEvent
editorKeydownKeyboardEvent
editorPasteClipboardEvent
editorDragoverDragEvent
editorDropDragEvent
editorFocusFocusEvent
editorBlurFocusEvent
selectionChangeMarkdownSelection
toolbarCommandMarkdownToolbarCommandEvent

SoneMarkdownEditorFooterDirectiveDiretiva

Seletor
[soneMarkdownEditorFooter]

SoneMarkdownEditorToolsDirectiveDiretiva

Seletor
[soneMarkdownEditorTools]

SoneMarkdownPreviewDirectiveDiretiva

Seletor
ng-template[soneMarkdownPreview]