Defining custom Markdown syntax in RMarkdown / pander
问题 In Markdown / RMarkdown, **this** is translated to bold , _this_ is cursive etc. Is it possible to create a custom syntax? For example, that -this- (a word between two dashes) gets translated to something I define myself (via css for html and latex for pdf)? 回答1: Document parsing is done by pandoc. For this kind of customization, one would have to customize pandoc's Markdown reader (written in Haskell), and then use the self-compiled binary for knitting. One way to get close to having custom