markdown2html

package module
v0.0.0-...-9ebe9e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

markdown2html

markdown2html

markdown语法总结
标题
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题
字体格式
*斜体* 或 _斜体_
**粗体**
***加粗斜体***
~~删除线~~
超链接
[百度一下](http://www.baidu.com)
图像
![百度一下](https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png)
列表
- 无序列表项 一
- 无序列表项 二
- 无序列表项 三

* 无序列表项 一
* 无序列表项 二
* 无序列表项 三

1. 有序列表项 一
2. 有序列表项 二
3. 有序列表项 三
引用
> 百度一下你就知道

> > > 请问 Markdwon 怎么用? - 小白
> > 
> > 自己看教程! - 愤青
> 
> 教程在哪? - 小白
代码
```
    code
```
表格
| 学号 | 姓名 | 分数 |
| ---- | ---- | ---- |
| 小明 | 男   | 75   |
| 小红 | 女   | 79   |
| 小陆 | 男   | 92   |

| 产品             |     价格 |
| ---------------- | -------: |
| Leanote 高级账号 |  60元/年 |
| Leanote 超级账号 | 120元/年 |

| 学号  | 姓名  | 分数  |
| :---: | :---: | :---: |
| 小明  |  男   |  75   |
| 小红  |  女   |  79   |
| 小陆  |  男   |  92   |
分隔线
---
------

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHtmlString

func GetHtmlString(title string, iconHref string, body string) string

Types

type Markdown2Html

type Markdown2Html struct {
	Title    string `json:"Title"`
	IconHref string `json:"IconHref"`
	Markdown string `json:"Markdown"`
}

func (*Markdown2Html) ToHtml

func (m *Markdown2Html) ToHtml() string

func (*Markdown2Html) TranslateMarkdown

func (m *Markdown2Html) TranslateMarkdown() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL