mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-25 02:00:12 +08:00
Replace "&", "<", ">" to HTML entities in Markdown.
This commit is contained in:
@@ -84,6 +84,9 @@ namespace QuickLook.Plugin.MarkdownViewer
|
||||
private string GenerateMarkdownHtml(string path)
|
||||
{
|
||||
var md = File.ReadAllText(path);
|
||||
md = md.Replace("&", "&")
|
||||
.Replace("<", "<")
|
||||
.Replace(">", ">");
|
||||
var html = Resources.md2html.Replace("{{content}}", md);
|
||||
|
||||
return html;
|
||||
|
||||
Reference in New Issue
Block a user