Markdown & Editor

Renderuje Markdown w stylu GitHub jako tekst i pozwala go edytować z paskiem narzędzi, podglądem na żywo i widokiem dzielonym.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: jeszcze niedostępny

Użycie

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

Import

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

Dokumentacja API

SoneFloatingDockDirectiveDyrektywa

Selektor
[soneFloatingDock]
Wejścia
NazwaTyp Domyślnie
soneFloatingDockbooleanfalse
floatingDockAnchorwymaganeHTMLElement—

SoneMarkdownComponentKomponent

Selektor
sone-markdown
Wejścia
NazwaTyp Domyślnie
sourcestring | null | undefined""
sizeMarkdownSize"default"
breaksbooleantrue

SoneMarkdownEditorComponentKomponent

Selektor
sone-markdown-editor
Eksport jako
soneMarkdownEditor
Wejścia
NazwaTyp Domyślnie
valuedwukierunkowestring""
modedwukierunkoweMarkdownEditorMode"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
Wyjścia
NazwaTyp
editorInputEvent
editorKeydownKeyboardEvent
editorPasteClipboardEvent
editorDragoverDragEvent
editorDropDragEvent
editorFocusFocusEvent
editorBlurFocusEvent
selectionChangeMarkdownSelection
toolbarCommandMarkdownToolbarCommandEvent

SoneMarkdownEditorFooterDirectiveDyrektywa

Selektor
[soneMarkdownEditorFooter]

SoneMarkdownEditorToolsDirectiveDyrektywa

Selektor
[soneMarkdownEditorTools]

SoneMarkdownPreviewDirectiveDyrektywa

Selektor
ng-template[soneMarkdownPreview]