diff options
author | silverwind <me@silverwind.io> | 2020-04-22 00:13:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 23:13:56 +0100 |
commit | 7e20f1cb5b3ef494676f3629e4980c8cdd64525b (patch) | |
tree | 7dc0f5b4975ff135ce074ddca9e959e13266df33 /custom/conf | |
parent | 49f8b20570a4a6e7d49f00ee91453dc8ef84f4b1 (diff) | |
download | gitea-7e20f1cb5b3ef494676f3629e4980c8cdd64525b.tar.gz gitea-7e20f1cb5b3ef494676f3629e4980c8cdd64525b.zip |
enable ENABLE_HARD_LINE_BREAK by default (#11162)
enable ENABLE_HARD_LINE_BREAK by default
This matches GitHub's rendering.
Fix #11155
Diffstat (limited to 'custom/conf')
-rw-r--r-- | custom/conf/app.ini.sample | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index 556f93a91d..414cd3f278 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -201,8 +201,10 @@ DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git servic KEYWORDS = go,git,self-hosted,gitea [markdown] -; Enable hard line break extension -ENABLE_HARD_LINE_BREAK = false +; Render soft line breaks as hard line breaks, which means a single newline character between +; paragraphs will cause a line break and adding trailing whitespace to paragraphs is not +; necessary to force a line break. +ENABLE_HARD_LINE_BREAK = true ; Comma separated list of custom URL-Schemes that are allowed as links when rendering Markdown ; for example git,magnet,ftp (more at https://en.wikipedia.org/wiki/List_of_URI_schemes) ; URLs starting with http and https are always displayed, whatever is put in this entry. |