fix(Pandoc): Enable raw_attribute in markdown.

Enabling this makes the way I write pages more functional inside of
pandoc.

In future I may add some way of allowing users to provide pandoc
arguments.
This commit is contained in:
Robert Morrison 2024-06-26 05:28:51 +01:00
parent 5d79026135
commit ca84cafbdb
Signed by: robert
GPG Key ID: 73E012EB3F4EC696

View File

@ -150,6 +150,7 @@ public static class Conversions{
Log.Warning("Pandoc template for {file} not found",file.Name); Log.Warning("Pandoc template for {file} not found",file.Name);
} }
pandocArgs += " --from markdown+raw_attribute ";
if (!Directory.Exists(Path.GetDirectoryName(GetNewName(file,settings,".html")))) if (!Directory.Exists(Path.GetDirectoryName(GetNewName(file,settings,".html"))))
{ {
Directory.CreateDirectory(Path.GetDirectoryName(GetNewName(file,settings,".html"))!); Directory.CreateDirectory(Path.GetDirectoryName(GetNewName(file,settings,".html"))!);