Skip to content

Conversation

@SylvainChevalier
Copy link
Contributor

Adds a "Plain text" option to the code block language selector in the markdown editor.

Changes

  • Added "Plain text" to the language selector dropdown
  • Added aliases (text, plaintext, plain) for plain text code blocks
  • Modified rendering logic to skip syntax highlighting for plain text
  • Plain text code blocks don't add anything after backticks

Fixes #3917


Generated with Claude Code

- Added "Plain text" option to code block language selector
- Added aliases (text, plaintext, plain) for plain text
- Modified PrismCodeBlock to render plain text without syntax highlighting
- Plain text code blocks don't add anything after backticks

Fixes #3917

Co-authored-by: Sylvain <[email protected]>
@SylvainChevalier
Copy link
Contributor Author

@claude make plaintext the default when adding a new codeblock.

@claude
Copy link

claude bot commented Dec 12, 2025

Claude finished @SylvainChevalier's task in 1m 6s —— View job


Done! ✓

Tasks

  • Read repository guidelines (CLAUDE.md)
  • Read the changed files to understand current implementation
  • Find where default language is set for new code blocks
  • Change default to plaintext
  • Commit and push changes

Summary

Changed the default code block language from TypeScript ("ts") to Plain text ("text") in the markdown editor. When users now add a new code block, it will default to plain text instead of TypeScript.

Modified file:

  • front_end/src/components/markdown_editor/initialized_editor.tsx:272

--- |

Copy link
Contributor

@ncarazon ncarazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hlbmtc hlbmtc merged commit 21d63da into main Dec 18, 2025
3 checks passed
@hlbmtc hlbmtc deleted the claude/issue-3917-20251212-1326 branch December 18, 2025 16:02
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.

Add plaintext option to code blocks in the markdown editor

4 participants