Markdown 删除线生成器
为 GitHub、Discord 和其他平台创建 markdown 删除线文本。学习不同的 markdown 删除线方法,使用双波浪线格式化您的文本。
Markdown Strikethrough Generator - Create Strikethrough Text in Markdown
This free tool helps you create strikethrough text in markdown for GitHub, Discord, and other platforms. Generate strikethrough markdown with different syntax methods.
Strikethrough Markdown Settings
Strikethrough Markdown Output
Strikethrough Markdown Syntax Guide
Strikethrough in Markdown allows you to cross out words while keeping them visible, which is useful for showing edits, corrections, or outdated information. Creating strikethrough text in Markdown can be done using several methods, depending on the platform you're using.
How to Use Double Tilde for Strikethrough in GitHub Markdown
The most widely supported method for creating strikethrough text in markdown is using double tildes, which is part of the GitHub Flavored Markdown (GFM) specification:
~~Strikethrough text~~
This renders as: Strikethrough text
GitHub markdown strikethrough is supported across GitHub, GitLab, Reddit, Stack Overflow, and most modern Markdown editors and platforms. When you need to create strikethrough text in markdown for GitHub repositories, issues, or pull requests, this is the recommended syntax.
Single Tilde Strikethrough Markdown
Some platforms like Discord and Obsidian support a single tilde for creating strikethrough text in markdown:
~Strikethrough text~
This method is less widely supported but may be more convenient when writing quick messages on supported platforms. If you're specifically creating Discord strikethrough markdown, this syntax is commonly used.
HTML Tags for Markdown Strikethrough
For maximum compatibility, you can use HTML tags to create strikethrough text in markdown across most Markdown flavors:
<del>Strikethrough text</del>
<s>Alternative strikethrough tag</s>
HTML tags work in most Markdown parsers that allow HTML, including the original Markdown specification and CommonMark. However, some platforms with strict content policies (like Discord) may not render HTML tags for security reasons.
Practical Examples of Strikethrough Markdown
1. Showing corrections with markdown strikethrough text
The meeting will take place on ~~Monday at 3PM~~ Tuesday at 2PM.
2. Task list with completed items using strikethrough markdown
- [x] ~~Write first draft~~
- [ ] Review draft
- [ ] Publish document
3. Price changes with strikethrough text in markdown
**Black Friday Sale!**
~~$99.99~~ $79.99 - Premium Plan
4. Document revisions using GitHub markdown strikethrough
## Authentication
~~API keys must be included in the URL parameters.~~
API keys must be included in the request headers for security.
需要了解更多Markdown语法细节?我们的全面速查表涵盖了所有元素的详细说明:
探索完整Markdown语法Frequently Asked Questions About Markdown Strikethrough
What is strikethrough text in markdown?
Strikethrough text in markdown is a formatting style that places a horizontal line through text, indicating it has been deleted or is no longer relevant while keeping it visible for context. It's commonly used for showing edits, corrections, or outdated information in documentation, comments, and other markdown-formatted content.
How do I create strikethrough text in GitHub markdown?
To create strikethrough text in GitHub markdown, use the double tilde syntax (~~text~~
) around the text you want to strike through. This is part of GitHub Flavored Markdown (GFM) and works in issues, pull requests, comments, READMEs, and other markdown files on GitHub. For example, typing ~~outdated information~~
will display as outdated information when rendered on GitHub.
Is strikethrough in markdown part of standard Markdown?
Strikethrough in markdown using tildes (~~text~~
) is not part of the original Markdown specification or CommonMark. It's an extension added in GitHub Flavored Markdown that has been widely adopted. For maximum compatibility across all Markdown parsers, you can use HTML tags (<del>text</del>
) to create strikethrough text in markdown documents that need to work with standard markdown processors.
How do I create strikethrough markdown in Discord?
Discord supports both single and double tilde syntax for strikethrough markdown. You can use either ~text~
or ~~text~~
to create strikethrough text in Discord messages. The single tilde version is more commonly used in Discord due to its simplicity. For example, typing ~outdated message~
will display as outdated message in Discord.
Can I create strikethrough text markdown across multiple paragraphs?
Yes, but with some limitations. With the tilde syntax, you need to apply strikethrough markdown to each paragraph separately as it doesn't work across paragraph breaks. For example:
~~Paragraph one~~
~~Paragraph two~~
If you need to create strikethrough text markdown across multiple paragraphs as a block, you can use HTML tags instead:
<del>
Paragraph one
Paragraph two
</del>
Can I combine strikethrough markdown with other formatting?
Yes, you can combine strikethrough markdown with other formatting elements like bold, italic, or links. When creating complex markdown strikethrough text, you can nest different syntax elements. For example:
~~**Bold strikethrough text**~~
~~*Italic strikethrough text*~~
~~[Strikethrough link text](https://example.com)~~
The order of formatting usually doesn't matter, so **~~text~~**
and ~~**text**~~
would produce the same strikethrough text markdown result on most platforms.
What's the difference between markdown strikethrough in GitHub and other platforms?
Markdown strikethrough in GitHub uses the double tilde syntax (~~text~~
) which is part of GitHub Flavored Markdown (GFM). While this same syntax works on many platforms like GitLab, Reddit, and Stack Overflow, some platforms have variations. For example, Discord supports both single (~) and double (~~) tildes for strikethrough, while some basic Markdown processors don't support strikethrough at all. If you're specifically creating content for GitHub, always use the double tilde syntax for consistent rendering of strikethrough text in GitHub markdown.
Other Useful Tools
实时将 Markdown 文本转换为漂亮的 HTML。支持代码高亮、表格等功能。
完整的 Markdown 语法参考指南,包含格式化、表格、代码块等示例。
使用我们的可视化编辑器轻松创建 markdown 表格。为 GitHub markdown、文档等生成表格。自定义对齐方式,导入/导出数据,并提供实时预览。
轻松创建 Markdown 超链接。为网站、文档或 Discord 等平台生成标准、自动及引用链接的正确语法。
学习如何在 Markdown 中添加注释。为 GitHub、文档和其他平台创建隐藏注释,使用 HTML 和引用样式方法。
学习如何在 markdown 文档中添加新行。尝试不同的换行方法,适用于 GitHub、Discord 和其他平台,使用尾随空格、反斜杠和 HTML br 标签。
即时将 HTML 表格转换为 Markdown 格式。粘贴 HTML 代码并获取格式正确的 Markdown 表格。
统计 Markdown 文本的字数、字符数并估算阅读时间。智能忽略代码块。
清理 AI 输出中的 Markdown 语法。将格式化的 Markdown 转换为简单的 TXT 内容,同时保留结构。
从 Markdown 中提取并转换数学公式为 LaTeX 格式,用于学术论文和科学文档。