Style Extension
The style extension exists to apply, as the name suggests, style to markdown text via the "style" command. The list of available configuration options is provided in Table 1.
Extension Configuration
Table 1: Available configure options for the StyleExtension object.
Key | Default | Description |
---|---|---|
active | True | Toggle for disabling the extension. This only changes the initial active state, use setActive to control at runtime. |
Style Command
Style can be applied to blocks of text via the block versions of the "style" command. For example, to center text horizontally use the "halign" setting as follows.
Inline text may also be styled, for example the following creates colored text within a box.
The complete list of available settings is provide in Table 2.
Table 2: Available settings for the 'style' command.
Key | Default | Description |
---|---|---|
style | None | The style settings that are passed to rendered HTML tag. |
class | None | The class settings to be passed to rendered HTML tag. |
id | None | The class settings to be passed to the rendered tag. |
halign | None | The horizontal alignment ('center', 'left', or 'right') |
border | None | The size of the border in pixels |
color | None | Set the color of content. |
fontsize | None | Set the font size. |
fontweight | None | Set the font weight. |