📝 Markdown — 技能工具

v1.0.1

[自动翻译] Generate clean, portable Markdown that renders correctly across parsers.

5· 3.1k·0 当前·0 累计
by @ivangdavila·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/10
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
This is an instruction-only Markdown style guidance skill with no installs, required credentials, or out‑of‑scope instructions — its declared purpose aligns with what it asks the agent to do.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.12026/2/10
无害

安装命令

点击复制
官方npx clawhub@latest install markdown
🇨🇳 镜像加速npx clawhub@latest install markdown --registry https://cn.longxiaskill.com

技能文档

Whitespace Traps

  • Blank line required before lists, code blocks, and blockquotes—without it, many parsers continue the previous paragraph
  • Nested lists need 4 spaces (not 2) for GitHub/CommonMark; 2 spaces breaks nesting in strict parsers
  • Two trailing spaces for
    break—invisible and often stripped by editors; prefer blank line or
    tag
  • Lines with only spaces still break paragraphs—trim trailing whitespace

Links & Images

  • Parentheses in URLs break text—use %28 %29 or angle brackets: text>)
  • Spaces in URLs need %20 or angle bracket syntax
  • Reference-style links [text][ref] fail silently if [ref]: url is missing—verify all refs exist
  • Images without alt text: always provide !alt even if empty ![]() for accessibility tools

Code

  • Triple backticks inside fenced blocks—use 4+ backticks for outer fence or indent method
  • Inline backticks containing backtick—wrap with double backticks and pad: `` code `
  • Language hint after fence affects syntax highlighting—omit only when truly plain text

Tables

  • Alignment colons go in separator row: :--- left, :---: center, ---: right
  • Pipe | in cell content needs backslash escape: \|
  • No blank line before table—some parsers fail
  • Empty cells need at least one space or break rendering

Escaping

  • Characters needing escape in text: \*, \_, \[, \], \#, \>, \`, \\
  • Escape not needed inside code spans/blocks
  • Ampersand only needs escape as & when it could form an HTML entity

Portability

  • HTML tags work in GitHub but stripped in many renderers—prefer pure Markdown
  • Extended syntax (footnotes, task lists, emoji shortcodes) not universal—check target parser
  • YAML frontmatter needs ---` fences and only at file start; some parsers render it as text
数据来源:ClawHub ↗ · 中文优化:龙虾技能库