Type Editor / @type-editor/markdown / types/MarkSerializerSpec / MarkSerializerSpec
Interface: MarkSerializerSpec
Defined in: types/MarkSerializerSpec.ts:17
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
close | string | MarkSerializerFunc | The string that should appear after a piece of content marked by this mark. | types/MarkSerializerSpec.ts:28 |
escape? | boolean | Can 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? | boolean | When 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-330 | types/MarkSerializerSpec.ts:43 |
mixable? | boolean | When 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 |
open | string | MarkSerializerFunc | The 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 |