Flavors
Overview
You can use flavors (or presets) to set the preferred options automatically. In this way, Showdown behaves like popular Markdown flavors.
Currently, the following flavors are available:
original
: Original Markdown flavor as in John Gruber's specvanilla
: Showdown base flavor (v1.3.1 onwards)github
: GitHub Flavored Markdown, or GFM
Set flavor
showdown.setFlavor('github');
converter.setFlavor('github');