docascod / DocsAsCode

https://docascod.github.io/howto/
9 stars 4 forks source link

check attributes usage from markdown or RST #3

Open docsAsCode opened 4 years ago

docsAsCode commented 4 years ago

adoc can use attributes to replace some values in a document. The attribute must be declared in the header as :myattribute: value and can be used in the body as {myattribute}.

This issue must check :

jerCarre commented 4 years ago
---
title: test attribute
myattribute: value
---

## first part

in this part we speak about {myattribute}

The attribute declaration is well transmitted into adoc file but the left brace is escaped by converter on attribute usage. => issue on kramdown-asciidoc

docsAsCode commented 4 years ago

fixed by code for MD

docsAsCode commented 4 years ago

For RST, must use substitution directive, but ... bug with pandoc : https://github.com/jgm/pandoc/issues/4160