MacDownApp/macdown

Add a line wrapping option for code blocks

Open

#1.136 aberto em 30 de dez. de 2019

Ver no GitHub
 (1 comment) (2 reactions) (0 assignees)Objective-C (930 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (7.686 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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.

Guia do colaborador