public class MarkDown2HtmlWrapper extends Object
Created by yihui on 2017/9/9.
| 构造器和说明 |
|---|
MarkDown2HtmlWrapper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
buildCssContent(String file) |
static MarkdownEntity |
ofContent(String content)
直接将markdown语义的文本转为html格式输出
|
static MarkdownEntity |
ofFile(String path)
将本地的markdown文件,转为html文档输出
|
static MarkdownEntity |
ofStream(InputStream stream)
将流转为html文档输出
|
static MarkdownEntity |
ofUrl(String url)
将网络的markdown文件,转为html文档输出
|
static String |
parse(String content)
markdown to html
|
public static String MD_CSS
public static MarkdownEntity ofFile(String path) throws IOException
path - 相对地址or绝对地址 ("/" 开头)IOExceptionpublic static MarkdownEntity ofUrl(String url) throws IOException
url - http开头的url格式IOExceptionpublic static MarkdownEntity ofStream(InputStream stream)
stream - public static MarkdownEntity ofContent(String content)
content - markdown语义文本Copyright © 2021. All rights reserved.