fluid主题渲染markdown的测试

Chapter1

Warning 文字 或者 markdown 均可 你在说什么

1
2
3
4
5
{% note warning %}
Warning
文字 或者 `markdown` 均可
*你在说什么*
{% endnote %}

Chapter2

小标签 小标签2 小标签3

比用行内代码写的小标签要好看一些

小标签是用如下的代码展现的 {% label primary @小标签 %}

上面这个单行的代码展示可以直接使用``来实现, 即行内代码

1
这是使用```blabla```行间代码展示的

这是斜体

这是粗体

这是粗斜体

不是

1
2
3
4
5
6
> [!note] Title
> Contents

==这理应是一个高亮, 但是无法实现==

这两个语法是渲染不出来的, 如下

[!note] Title Contents

==这在ob是一个高亮, 但是这里的渲染器无法实现==

文字 或者 markdown 均可

alaskdjlkasdjf

1
2
3
4
5
{% note warning %}
文字 或者 `markdown` 均可

alaskdjlkasdjf
{% endnote %}
高亮能不能用fluid的标签语法实现呢, 效果还是可以的, 不能换行

代码如下

{% label warning @高亮能不能用fluid的标签语法实现呢 %}

一级引用

二级引用

三级引用

退回二级引用

1
2
3
4
5
6
7
> 一级引用
>
>> 二级引用
>>
>>> 三级引用
>>
>> 退回二级引用
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Wheel command line tool (enable python -m wheel syntax)

import sys


def main(): # needed for console script
if __package__ == '':
# To be able to run 'python wheel-0.9.whl/wheel':
import os.path
path = os.path.dirname(os.path.dirname(__file__))
sys.path[0:0] = [path]
import wheel.cli
sys.exit(wheel.cli.main())


if __name__ == "__main__":
sys.exit(main())

\[ E=mc^2 \]

inline formula \(x+y=z\) inline formula

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import os

# filepath is where the wav recordings store

# filepath = 'offline-test-data-1-mono'
# filepath = 'offline-test-data-2-stereo-to-mono'
filepath = "offline-test-data-3-stereo"
# outpath1 is where the rttm files store
outpath1 = "{filepath}/rttm/".format(filepath=filepath)
# outpath2 is where the sad files store
outpath2 = "{filepath}/sad/".format(filepath=filepath)

if not os.path.exists(outpath1):
os.mkdir(outpath1)

if not os.path.exists(outpath2):
os.mkdir(outpath2)

# filepath/textgrid is where the textgrid files of recordings store
files = os.listdir("{filepath}/textgrid/".format(filepath=filepath))

# for each textgrid file, extract the speech segments and write them into rttm files
for file in files:
print("--------------------")
filename = file.split(".")[0]
print(filename)
with open(
"{filepath}/textgrid/{file}".format(filepath=filepath, file=file), "r"
) as f:
out = []
lines = f.readlines()
lines = [line[:-1] for line in lines]
for i, line in enumerate(lines):
if len(line) > 2 and len(line) < 10 and line[0] == '"':
if line[-1] == '"' and not (
line == '"6"'
or line == '"1"'
or line == '"2"'
or line == '"TextGrid"'
or line == '"IntervalTier"'
or line == '"全局层"'
or line == '"文本层"'
or line == '"角色层"'
or line == '"[ENS]"'
or line == '"[SIL]"'
):
# if line[1] == "[" or line == "\"+\"":
if line == '"+"':
s = lines[i - 2]
print(s)
e = lines[i - 1]
print(e)
duration = round((float(e) - float(s)), 3)
print(duration)
print(line)
print(" ")
outputline1 = "SPEAKER {filename}_B1 {s} {duration} <NA> <NA> {filename}{speaker} <NA> <NA>\n".format(
filename=filename, s=s, duration=duration, speaker="+"
)
# print(outputline1)
outputline2 = "{s} {e} speech\n".format(s=s, e=e)
# print(outputline2)
with open(
"{filepath}/rttm_AB_new/{filename}_B.rttm".format(
filepath=filepath, filename=filename
),
"a",
) as f:
f.write(outputline1)
with open(
"{filepath}/sad_AB_new/{filename}_A.lab".format(
filepath=filepath, filename=filename
),
"a",
) as f:
f.write(outputline2)

references

b站链接

插入一张图片, 这是图片下方文字
插入一张黑色图片
用github做一个图床, 然后引用
插入一个icon, 亮色主题下会有阴影边框

fluid主题渲染markdown的测试
http://yizhenallen.github.io/2023/07/13/我的第一篇博客文章/
作者
yizhenAllen
发布于
2023年7月13日
许可协议