New options
"OverwriteImages" -> True|False
Since images automatic names are based on expression hash we can avoid repeated exporting of them. By default an image won't be exported if nothing changed. That option can force it to export anyway.
MDElementTemplates
"MDElementTemplates" -> KeyValuePattern[{ mdTag_String -> template:_String|_TemplateObject }]
The converter first creates a symbolic representation of a markdown which uses MDElement["h1", "a title"]
and this option allows us to overwrite existing rules by which it is translated to the final string.
Currently used MD element rules are:
<|
"LaTeXBlock" -> "$$``$$"
, "LaTeXInline"-> "$``$"
, "Image" -> "![``](``)"
, "Hyperlink" -> "[``](``)"
, "Text" -> "``"
, "Bold" -> "**``**"
, "Italic" -> "*``*"
, "h1" -> "# <*StringReplace[#, \"\n\"->\"<br>\"]*>"
, "h2" -> "## <*StringReplace[#, \"\n\"->\"<br>\"]*>"
, "h3" -> "### <*StringReplace[#, \"\n\"->\"<br>\"]*>"
, "h4" -> "#### <*StringReplace[#, \"\n\"->\"<br>\"]*>"
, "h5" -> "##### <*StringReplace[#, \"\n\"->\"<br>\"]*>"
, "h6" -> "###### <*StringReplace[#, \"\n\"->\"<br>\"]*>"
, "Comment" -> "[//]: # (``)"
, "CodeBlock" -> TemplateExpression @ StringJoin["```mathematica\n", TemplateSlot[1], "\n```"]
, "Output" -> TemplateExpression @ StringJoin["```\n(*", TemplateSlot[1], "*)\n```"]
|>;