Fix heading with bold text producing malformed output#11
Merged
thesmallstar merged 1 commit intomainfrom Mar 2, 2026
Merged
Conversation
Both headings and bold map to `*` in Slack mrkdwn. When bold text appears inside a heading, the nested `*` markers produce malformed output like `**Step 1*: Description here*` instead of the correct `*Step 1: Description here*`. Suppress bold markers inside headings since the heading wrapper already provides bold formatting, making nested bold redundant. Fixes #10 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
### **Step 1**: Description here) produced malformed Slack mrkdwn output like**Step 1*: Description here**in Slack mrkdwn, so nested bold inside a heading creates duplicate/mismatched*markersstrong_open/strong_closemarkers when inside a heading context, since the heading wrapper already provides bold formattingBefore / After
### **Step 1**: Description here**Step 1*: Description here**Step 1: Description here*### **Step 1****Step 1***Step 1*# **Test**: text**Test*: text**Test: text*Test plan
test_heading_with_boldcovering all 3 reproduction cases from the issue**Bold**→*Bold*) still works correctly🤖 Generated with Claude Code