MacDownApp / MacDownApp/macdown
Add a line wrapping option for code blocks
Nobody has claimed this yet.
- Dominant language
- Rich Text Format
- Stars
- 9.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
I'd like there to be an option to have code blocks be line wrapped. Maybe a check box for it in Rendering -> "Syntax highlighted code block" next to "Show line numbers" etc.?
If I try hard enough I can dig through the css files in Contents/Resources/Prism/themes and change "white-space: pre;" to "white-space: pre-wrap;", but doing so breaks the code signature of the app. And that's not a very nice way to do it anyway.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Rendering → “Syntax highlighted code block” settings and the styles under Contents/Resources/Prism/themes. Trace how the existing “Show line numbers” option is applied, then determine how a wrapping option can change code-block rendering without editing signed resources. Done means the option is available beside the existing rendering controls and wrapped code blocks work without breaking the app signature.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, objective-c
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100