Settings
Standard YFM settings are listed below. Depending on the tool you use, you can configure them in one of the following ways:
- In a configuration file.
- As a function parameter (Transformer).
- Via startup keys (Builder).
Name | Description | Type | Default value |
---|---|---|---|
vars |
Variables | Object |
{} |
allowHTML |
Allow HTML in markup | bool |
false |
linkify |
Convert link-like strings to links | bool |
false |
breaks |
Use the carriage return character for a line break | bool |
true |
conditionsInCode |
Meet conditions in code blocks | bool |
false |
disableLiquid |
Disable the use of variables | bool |
false |
supportGithubAnchors |
Generate additional anchors that are compatible with GitHub | bool |
false |
lang |
Localization language of default texts | string |
ru |
needToSanitizeHtml |
Need to sanitize the generated HTML | bool |
false |
sanitizeOptions |
Sanitizer configuration | Object |
undefined |
linkifyTlds |
Allow set tld for the linkify plugin | string | string[] |
undefined |