Transformation settings
The transformation settings are listed below. You can configure them and standard YFM settings in one of the following ways:
- When invoking the
transform
function. - In a configuration file.
Name | Description | Type | Default value |
---|---|---|---|
plugins |
Added plugins | function[] |
See the Plugins page |
highlightLangs |
Additional languages for code highlighting | {'lang': function} |
{} |
extractTitle |
Return the first first-level header as the title of the entire document | bool |
false |
needTitle |
Return the first first-level header without removing it from the document text | bool |
false |
needFlatListHeadings |
Generate a flat list of all headers in a document | bool |
false |
Was the article helpful?
Previous