-
Nested Class Summary
Nested classes/interfaces inherited from class org.aya.pretty.backend.html.Html5Stylist
Html5Stylist.ClassedPresetNested classes/interfaces inherited from class org.aya.pretty.backend.string.ClosingStylist
ClosingStylist.Delegate, ClosingStylist.StyleToken -
Field Summary
FieldsFields inherited from class org.aya.pretty.printer.Stylist
colorScheme, styleFamily -
Constructor Summary
ConstructorsConstructorDescriptionMdStylist(@NotNull ColorScheme colorScheme, @NotNull StyleFamily styleFamily) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull ClosingStylist.StyleTokenformatBold(EnumSet<StringPrinter.Outer> outer) protected @NotNull ClosingStylist.StyleTokenformatCustom(@NotNull Style.CustomStyle style) protected @NotNull ClosingStylist.StyleTokenformatItalic(EnumSet<StringPrinter.Outer> outer) protected @NotNull ClosingStylist.StyleTokenformatStrike(EnumSet<StringPrinter.Outer> outer) Methods inherited from class org.aya.pretty.backend.html.Html5Stylist
colorsToCss, cssColor, cssVar, formatColorHex, formatUnderline, normalizeCssId, styleKeyToCss, styleToCssMethods inherited from class org.aya.pretty.backend.string.ClosingStylist
format, formatPresetColor, formatPresetStyle
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
MdStylist
public MdStylist(@NotNull @NotNull ColorScheme colorScheme, @NotNull @NotNull StyleFamily styleFamily)
-
-
Method Details
-
formatItalic
@NotNull protected @NotNull ClosingStylist.StyleToken formatItalic(EnumSet<StringPrinter.Outer> outer) - Overrides:
formatItalicin classHtml5Stylist- Implementation Note:
- Actually, we are abusing the undefined behavior (outer != Free) of markdown. Typical markdown does not allow italic/bold/strike/... in code segments, which means the `outer` should always be `Free`, but Literate Aya uses HTML tag `pre` and `code` for rendered Aya code, which allows more HTML typesetting to be applied. A solution may be a separate `AyaMdStylist` for Literate Aya only, and the standard markdown backend should always use markdown typesetting and assume `outer == Free` (but don't assert it).
-
formatBold
@NotNull protected @NotNull ClosingStylist.StyleToken formatBold(EnumSet<StringPrinter.Outer> outer) - Overrides:
formatBoldin classHtml5Stylist
-
formatStrike
@NotNull protected @NotNull ClosingStylist.StyleToken formatStrike(EnumSet<StringPrinter.Outer> outer) - Overrides:
formatStrikein classHtml5Stylist
-
formatCustom
@NotNull protected @NotNull ClosingStylist.StyleToken formatCustom(@NotNull Style.CustomStyle style) - Overrides:
formatCustomin classClosingStylist
-