mirror of https://github.com/helloxz/MDtoHTML
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xiaoz
f2331965ac
|
7 years ago | |
---|---|---|
caches | 7 years ago | |
static | 7 years ago | |
LICENSE | 7 years ago | |
Parsedown.php | 7 years ago | |
README.md | 7 years ago | |
api.php | 7 years ago | |
index.html | 7 years ago | |
style.php | 7 years ago | |
test.md | 7 years ago |
README.md
MDtoHTML
MDtoHTML可以快速将Markdown文件转换为HTML
环境要求
- PHP且 && CURL
示例
<!DOCTYPE html>
<html lang="zh-cmn-Hans" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>MDtoHTML</title>
<meta name="generator" content="EverEdit" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
</head>
<body>
<div id="mdtohtml"></div>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$.get("http://markdown.win/api.php?url=http://markdown.win/README.md",function(data,status){
if(status == 'success') {
$("#mdtohtml").html(data);
}
});
});
</script>
</body>
</html>