MacDownApp/macdown

Add a line wrapping option for code blocks

开放

#1,136 创建于 2019年12月30日

 (1 条评论) (2 个反应) (0 位负责人)Objective-C (930 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (7,686 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南