static async Task CreateHtml(string mdfile, string htmlfile) { var mdhtmlfile = Path.ChangeExtension(mdfile, ".html.md"); var src = File.ReadAllText(mdfile); src = Regex.Replace(src, @"\\bibleverse\{([0-9]+)\}", "<sup class='bibleverse'>$1</sup>", RegexOptions.Singleline); File.WriteAllText(mdhtmlfile, src); Log(mdhtmlfile); await PandocInstance.Convert <PandocMdIn, HtmlOut>(mdhtmlfile, htmlfile); Log(htmlfile); }
static async Task CreateTeX(string mdfile, string texfile) { await PandocInstance.Convert <PandocMdIn, LaTeXOut>(mdfile, texfile); Log(texfile); }