keitaoouchi / MarkdownView

Markdown View for iOS.
MIT License
1.97k stars 206 forks source link

Add custom styling option #78

Closed keitaoouchi closed 2 years ago

keitaoouchi commented 2 years ago

Add custom styling option.

Just give raw css as css argument.

    let markdown = ["# h1 title", "## h2 title", "### h3 title"].joined(separator: "\n")
    let css = [
      "h1 { color:red; }",
      "h2 { color:green; }",
      "h3 { color:blue; }",
    ].joined(separator: "")
    md.load(markdown: markdown, enableImage: true, css: css)