Markdown Front Matter using Yaml Subfilter
Clement Mouchet
Branch: lingo24/okapi-mainline:markdown-yaml
Branch: okapiframework/okapi:dev
Merged
Merged pull request
Merged in lingo24/okapi-mainline/markdown-yaml (pull request #260)
Merged in lingo24/okapi-mainline/markdown-yaml (pull request #260)
Addresses #741
Added Yaml Subfilter for Front Matter
Updated MarkdownParser to handle complex Front Matter structures
Updated the MarkdownFilters UI to support the Yaml Subfilter
Updated MarkdownFilter.java to pass the
FilterConfigurationMapper
to the yaml filter so we can use a sub-filter on it.Added new option to the Yaml Parameters.java:
subFilterProcessLiteralAsBlock
to send Yaml literals as a block, so the sub-filter can deal with it as a TU. Defaults to false, it's a non-breaking change that doesn't affect the current default behaviour.Updated YamlFilter.java to use
subFilterProcessLiteralAsBlock
Added the
okf_yaml@for_markdown.fprm
default filter for Front Matter to use theokf_markdown
sub-filter instead of a code-finder, and process literals as blocks usingsubFilterProcessLiteralAsBlock