Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

feat: enable rich text formatting for campfire posts#145

Merged
brigleb merged 2 commits into
needmore:mainfrom
nnemirovsky:feat/campfire-html-content-type
Feb 21, 2026
Merged

feat: enable rich text formatting for campfire posts#145
brigleb merged 2 commits into
needmore:mainfrom
nnemirovsky:feat/campfire-html-content-type

Conversation

@nnemirovsky
Copy link
Copy Markdown
Contributor

  • Add content_type field to CampfireLineCreate struct and pass "text/html" when posting
  • Enable markdown-to-HTML converter (was commented out as TODO)
  • Enable WithHardWraps() in goldmark so single newlines produce <br> tags

Previously campfire messages were sent as plain text, so markdown formatting (bold, links, etc.) wasn't rendered and newlines were lost.

Send campfire messages as HTML by adding content_type field to the API
and enabling the markdown-to-HTML converter. Also enable hard wraps in
goldmark so single newlines produce <br> tags.
@nnemirovsky nnemirovsky force-pushed the feat/campfire-html-content-type branch from 155a1da to 679f882 Compare February 17, 2026 08:16
@brigleb brigleb merged commit 7c31ece into needmore:main Feb 21, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants