markdown-block

Wraps markdown content in a copyable fenced code block with correct backtick escaping.

64|11|Updated May 24, 2026
One-click install
npx skills add https://github.com/AlexanderMattTurner/agent-glovebox --skill markdown-block-alexandermattturner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markdown-block
Source: https://github.com/AlexanderMattTurner/agent-glovebox/tree/main/.claude/skills/markdown-block
Command: npx skills add https://github.com/AlexanderMattTurner/agent-glovebox --skill markdown-block-alexandermattturner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When you ask an AI for markdown to paste into a README, GitHub issue, or PR description, the rendered output loses the raw source, and nested code fences break the copy block. This Skill outputs the raw markdown inside a properly escaped fenced code block so you can copy it verbatim. ## Core Features & Use Cases - Copyable Raw Markdown: Wraps the requested markdown in a single fenced code block tagged markdown so the source can be copied verbatim. - Fence Escaping Rules: Scans content for the longest backtick run and uses an outer fence with strictly more backticks, preventing inner code blocks from prematurely closing the block. - No Hard Wrapping: Keeps each paragraph on one line so pasted content autowraps correctly at its destination. - Use Case: Ask for a copyable README install section that itself contains a bash code block, and receive it inside a 4-backtick fence ready to paste into GitHub. ## Quick Start Ask the assistant to give you the markdown source for a README section as a copyable code block.

Frequently Asked Questions about markdown-block

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get copyable raw markdown from an AI assistant?

Ask for the markdown source, raw markdown, or a copyable code block. The response wraps the markdown in a fenced code block tagged markdown so you can copy the exact source and paste it into READMEs, issues, or docs.

How do I nest code blocks inside a markdown code fence?

Triple-backtick fences cannot nest, so the outer fence must use strictly more backticks than the longest backtick run inside the content. If the inner content has a 3-backtick block, use a 4-backtick outer fence.

Why does my copied markdown break when pasted into GitHub?

It usually breaks because an inner triple-backtick fence prematurely closed the outer fence, or because paragraphs were hard-wrapped at a fixed column. Use a longer outer fence and keep each paragraph on one line.

Can I use tildes instead of backticks for markdown fences?

Yes, tildes are an alternate fence character in markdown. The same rule applies: the outer tilde fence must be longer than the longest tilde run inside the content.

Do indented code blocks need escaping inside a markdown fence?

No, indented 4-space code blocks inside the markdown need no escaping because they cannot close a backtick fence. Only backtick or tilde fence runs affect the outer fence length.