0 Star 0 Fork 0

sylz/markdown_tutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.js 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
Finasia 提交于 2021-09-17 15:01 . (#^.^#))
const fs = require('fs');
const path = require('path');
fs.readFile(path.join(__dirname, 'README.md'),'utf8',(err,res)=>{
console.log(res)
/*
@
```html
<p>123</p>
<a href="#">a标签</a>
```
*/
});
console.log(JSON.stringify(`# Marked in the browser\n\nRendered by
**marked**
\`aaa\`
## h2 title
你@-_%^&
>引用:xxxxx
\`\`\`html
<a class="a123">我是a标签</a>
<p>我是p标签</p>
\`\`\`
\`\`\`js
let a = 123;
console.log(a);
function abc(){}
class bb{}
for(let i=0;i<3;++i){
console.log(i)
}
console.log(a)
const a = require('hightlight.js')
\`\`\`
\`\`\`css
a {
color:red;
background: url("./1.png");
}
\`\`\`
![](./01.jpg)
![](./02.jpg)
+ Create a list by starting a line with \`+\`, \`-\`, or \`*\`
+ Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
* Ac tristique libero volutpat at
+ Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
+ Very easy!
> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.
> Classic markup: :wink: :crush: :cry: :tear: :laughing: :yum:
>
> Shortcuts (emoticons): :-) :-( 8-) ;)
::: warning
warning container
:::
| Option | Description |
| &#45;&#45;&#45;&#45;&#45;&#45; | -&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45; |
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |`))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Vennasia/markdown_tutorial.git
[email protected]:Vennasia/markdown_tutorial.git
Vennasia
markdown_tutorial
markdown_tutorial
master

搜索帮助