generated from peaceiris/mkdocs-material-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# 3.4 Markdown 与 BBCode | ||
|
||
## 3.4.1 Markdown | ||
|
||
> 摘自维基百科: | ||
> | ||
> Markdown是一种轻量级标记语言,创始人为约翰·格鲁伯。它允许人们使用易读易写的纯文本格式编写文档,然后转换成有效的XHTML(或者HTML)文档。这种语言吸收了很多在电子邮件中已有的纯文本标记的特性。由于Markdown的轻量化、易读易写特性,并且对于图片,图表、数学式都有支持,目前许多网站都广泛使用Markdown来撰写帮助文档或是用于论坛上发表消息。如GitHub、Reddit、Discord、Diaspora、Stack Exchange、OpenStreetMap 、SourceForge、简书等,甚至还能被用来撰写电子书。 | ||
这是一种很简单的语言,不比英语语法复杂,容易上手,本文档大部分使用它编写。你可以在网上搜索“Markdown语法教程”,学习基础语法即可应对社区发帖中的绝大多数情况。 | ||
|
||
*另外,我曾经翻译过一本老外写的Markdown语法手册,解析详尽。你可以在[这里](/assets/markdown.pdf)下载。* | ||
|
||
## 3.4.2 BBCode | ||
|
||
> 摘自维基百科: | ||
> | ||
> BBCode是Bulletin Board Code的缩写,有译为“BB代码”者,属于轻量级标记语言(Lightweight Markup Language)的一种,如字面上所显示的,它主要是使用在BBS、论坛、Blog等网络应用上。BBCode最初由Ultimate Bulletin Board讨论区系统发展出来,因此常见UBB代码的称呼。BBCode的语法通常为[標記]的形式,即语法左右用两个中括号包围,以作为与正常文字间的区别。系统解译时遇上中括弧便知道该处是BBcode,会在解译结果输出到客户端时转换成最为通用的HTML语法。 | ||
本社区目前启用如下BBCode插件:![pke8tFU.png](https://s21.ax1x.com/2024/05/11/pke8tFU.png) | ||
|
||
看不懂?以下是所有插件说明: | ||
|
||
!!! note "约定" | ||
|
||
1. 加粗的为输入格式,重点关注! | ||
2. 除第二项“BBCode”外,其他插件按照图片中从上到下的顺序解释。 | ||
|
||
|
||
|
||
=== "音频 BBCode" | ||
|
||
**[audio mp3="song.mp3" ogg="song.ogg"]** | ||
**[audio mp3="song.mp3"]** | ||
**[audio ogg="song.ogg"]** | ||
**[audio m4a="song.m4a"]** | ||
**[audio wav="song.wav"]** | ||
**[audio flac="song.flac"]** | ||
**[audio webm="song.webm"]** | ||
**[audio mp3="song.mp3" width="50"]** | ||
(您可以将mp3和ogg文件放在一起以获得最大的浏览器兼容性,或者只是单独发布mp3, ogg, wav, flac, webm或m4a文件。此外,正如最后一个示例所示,您可以修改宽度。宽度将变成一个百分比,默认情况下,如果你选择不声明宽度,播放器将是100%的宽度。) | ||
|
||
=== "" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters