Whole XML attributes and methods of MarkdownView - BoxResin/MarkdownViewSupport GitHub Wiki
This page descripts whole XML attributes and methods of MarkdownView.
XML
-
markdown
Sets Markdown text directly.
ex) namespace:markdown = "## Hello Markdown"
-
markdownFromAssets
Sets Markdown text from the assets file. You have to save md file at assets folder, and set its path.
ex) namespace:markdownFromAssets = "hello.md"
-
css
Sets CSS text directly.
ex) namespace:css = "h1 { color: red }"
-
cssFromAssets
Sets CSS text from the assets file. You have to save css file at assets folder, and set it its path.
ex) namespace:cssFromAssets = "markdown_css_themes/paperwhite.css"
.
.
.
Methods
public void loadMarkdown(String markdownText)
public void loadMarkdown(@StringRes int markdownTextId)
Sets Markdown text directly.
public void loadMarkdownFromAssets(String markdownPath)
Sets Markdown text from the assets file. You have to save md file at assets folder, and set its path.
public void loadCss(String cssText)
Sets CSS text directly.
public void loadCssFromAssets(String cssPath)
Sets CSS text from the assets file. You have to save css file at assets folder, and set it its path.