Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Formatting] 中文粗体未能正常渲染 #28

Closed
skylee03 opened this issue Jun 5, 2024 · 3 comments
Closed

[Formatting] 中文粗体未能正常渲染 #28

skylee03 opened this issue Jun 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@skylee03
Copy link
Contributor

skylee03 commented Jun 5, 2024

image

当加粗部分以标点符号(如右括号)结尾时,右 ** 的右侧必须是有空格、换行或者其他标点。

PLFA-zh 的内容在 GitHub 直接显示时也常有同样的问题,但是其网页版可以正常渲染。

Agda-zh/PLFA-zh#1 的示例为例。

修改前:

现在我们定义了自然数及其运算,下一步是学习如何证明它们满足的性质。
如其名称所示,**归纳数据类型(inductive datatype)**是通过**归纳(induction)**
来证明的。

现在我们定义了自然数及其运算,下一步是学习如何证明它们满足的性质。
如其名称所示,归纳数据类型(inductive datatype)是通过归纳(induction)
来证明的。

修改后:

现在我们定义了自然数及其运算,下一步是学习如何证明它们满足的性质。
如其名称所示,**归纳数据类型(inductive datatype)** 是通过**归纳(induction)**
来证明的。

现在我们定义了自然数及其运算,下一步是学习如何证明它们满足的性质。
如其名称所示,归纳数据类型(inductive datatype) 是通过归纳(induction)
来证明的。

@skylee03
Copy link
Contributor Author

skylee03 commented Jun 5, 2024

此外,在 Markdown 文件内换行会引入多余的空格。

image

image

@OlingCat
Copy link
Member

OlingCat commented Jun 7, 2024

此外,在 Markdown 文件内换行会引入多余的空格。

image

image

断行的空格我写了个预处理脚本来去掉。不正确的粗体显示我再想想办法。

@OlingCat OlingCat added the bug Something isn't working label Jun 7, 2024
@OlingCat
Copy link
Member

OlingCat commented Jun 7, 2024

通过在渲染端添加了 JS 脚本移除了多余的空格,并修复了加粗问题。具体见 afa8de5

@OlingCat OlingCat closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants