How to use marked in WKWebView in AppKit
Issue #429
Use https://github.com/markedjs/marked
1 | <!doctype html> |
Should use back tick instead of '
to deal with multiline string, and escape back tick
1 | let markdown = markdown.replacingOccurrences(of: "`", with: "\\`") |
For WKWebView to load even local content, need to enable Outgoing connections
, and maybe Incoming connections
in Sandbox