有没有办法在(GitHub flavored)Markdown 中加划线?
Is there a way to overline text in (GitHub flavoured) Markdown?
我想在 Markdown 文件中加划线。这可能吗?
GitHub 风味的 Markdown 中没有内置的上划线功能。
你可以用the Combining Overline Unicode Character(U+0305)来模拟上划线,把这个字符贴在每个你想上划线的字符后面即可:
̅
这会产生以下结果:
1̅
或者,您可以为此使用 a generator。
它可以像粗体、斜体等一样使用波浪号 (~~)。下面是来自 GitLab documentation:
的示例
Any word wrapped with two tildes (like ~~this~~) will appear crossed out.
根据 GitHub Flavored Markdown Spec (section 4.6) 应该可以使用带有 style.
的内联 HTML 标签
例如,
<span style="text-decoration:overline">SIGNAL_ACTIVE_LOW</span>
应与文字一起呈现
加划线。
这适用于许多遵守 CommonMark 规范的降价编辑器,并且“GFM 是 CommonMark 的严格超集”,但它似乎不起作用。
您可以在CommonMark reference implementation.
中尝试
更新:
它不适用于像“README.md”这样的降价文件,但适用于 GitHub 页面,如下所示:
我想在 Markdown 文件中加划线。这可能吗?
GitHub 风味的 Markdown 中没有内置的上划线功能。
你可以用the Combining Overline Unicode Character(U+0305)来模拟上划线,把这个字符贴在每个你想上划线的字符后面即可:
̅
这会产生以下结果:
1̅
或者,您可以为此使用 a generator。
它可以像粗体、斜体等一样使用波浪号 (~~)。下面是来自 GitLab documentation:
的示例Any word wrapped with two tildes (like ~~this~~) will appear crossed out.
根据 GitHub Flavored Markdown Spec (section 4.6) 应该可以使用带有 style.
的内联 HTML 标签例如,
<span style="text-decoration:overline">SIGNAL_ACTIVE_LOW</span>
应与文字一起呈现 加划线。
这适用于许多遵守 CommonMark 规范的降价编辑器,并且“GFM 是 CommonMark 的严格超集”,但它似乎不起作用。
您可以在CommonMark reference implementation.
中尝试更新:
它不适用于像“README.md”这样的降价文件,但适用于 GitHub 页面,如下所示: