Skip to content

Add 'Wrap each line in backticks' option to text indentation tool - #328

Merged
simonw merged 1 commit into
mainfrom
claude/text-indent-backtick-wrap-hhlltw
Sep 2, 2026
Merged

Add 'Wrap each line in backticks' option to text indentation tool#328
simonw merged 1 commit into
mainfrom
claude/text-indent-backtick-wrap-hhlltw

Conversation

@simonw

@simonw simonw commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Add an option to the text indentation tool. labeled "wrap each line in backticks"

It adds a leading and trailing ` to every line of text, such that it will render in monospaced but still wrap

This also needs to be paragraph aware. The following:

This is some text.

- item
- item 2

Short line
Followed be another

Final paragraph

Should turn into:

`This is some text.`

`- item`<br>
`- item 2`

`Short line`<br>
`Followed be another`

`Final paragraph`

Note how double new lines are fine - markdown handles those correctly - but single newlines need a
to display correctly

https://claude.ai/code/session_01EA2bbM1RGTbDAYNofeoaAK

@claude

claude Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

Wraps every non-empty line in backticks so it renders as monospaced text
that still wraps in Markdown. Paragraph aware: single newlines within a
paragraph get a trailing <br>, blank lines between paragraphs are left
alone. Lines that already contain backticks use a longer fence.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EA2bbM1RGTbDAYNofeoaAK
@simonw
simonw force-pushed the claude/text-indent-backtick-wrap-hhlltw branch from e826ffb to ea344a7 Compare September 2, 2026 02:38
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploying tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: ea344a7
Status: ✅  Deploy successful!
Preview URL: https://3e639836.tools-b1q.pages.dev
Branch Preview URL: https://claude-text-indent-backtick.tools-b1q.pages.dev

View logs

@claude

claude Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

@simonw
simonw merged commit c4e674c into main Sep 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants