ParchmentHtmlCodec class
HTML conversion of Parchment
Inline attributes mapping
b-><strong>i-><em>u-><u>s-><del>c-><code>a-><a>fg-><span style="background-color: rgba(r,g,b,a)">
Line attributes mapping
- default ->
<p> - heading X ->
<hX> bq-><blockquote>code-><pre><code>ol-><ol><li>ul-><ul><li>cl-><div class="checklist">
<div class"checklist-item><input type="checklist" checked><label>- alignment ->
<xxx align="left | right | center | justify"> - direction ->
<xxx dir="rtl"> - indentation ->
<xxx style=padding-left:16px> - only one level is supported when decoding
Embed mapping
- BlockEmbed.image ->
<img src="..."> - BlockEmbed.horizontalRule ->
<hr>
NB: <br> are not recognized as new lines and will be ignored
NB2: a single line of text with only inline attributes will not be surrounded with <p>
- Inheritance
-
- Object
- Codec<
ParchmentDocument, String> - ParchmentHtmlCodec
Constructors
- ParchmentHtmlCodec()
-
const
Properties
-
decoder
→ Converter<
String, ParchmentDocument> -
Returns the decoder of
this, converting fromTtoS.no setteroverride -
encoder
→ Converter<
ParchmentDocument, String> -
Returns the encoder from
StoT.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
String, ParchmentDocument> -
Inverts
this.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
String encoded) → ParchmentDocument -
Decodes
encodeddata.inherited -
encode(
ParchmentDocument input) → String -
Encodes
input.inherited -
fuse<
R> (Codec< String, R> other) → Codec<ParchmentDocument, R> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited