Skip to content

Type Editor


Type Editor / @type-editor/markdown / types/MarkSerializerSpec / MarkSerializerSpec

Interface: MarkSerializerSpec

Defined in: types/MarkSerializerSpec.ts:17

Properties

PropertyTypeDescriptionDefined in
closestring | MarkSerializerFuncThe string that should appear after a piece of content marked by this mark.types/MarkSerializerSpec.ts:28
escape?booleanCan be set to false to disable character escaping in a mark. A non-escaping mark has to have the highest precedence (must always be the innermost mark).types/MarkSerializerSpec.ts:49
expelEnclosingWhitespace?booleanWhen enabled, causes the serializer to move enclosing whitespace from inside the marks to outside the marks. This is necessary for emphasis marks as CommonMark does not permit enclosing whitespace inside emphasis marks, see: http://spec.commonmark.org/0.26/#example-330types/MarkSerializerSpec.ts:43
mixable?booleanWhen true, this indicates that the order in which the mark's opening and closing syntax appears relative to other mixable marks can be varied. (For example, you can say **a *b*** and *a **b***, but not `a *b*`.)types/MarkSerializerSpec.ts:35
openstring | MarkSerializerFuncThe string that should appear before a piece of content marked by this mark, either directly or as a function that returns an appropriate string.types/MarkSerializerSpec.ts:23