Skip to content

Commit fee347d

Browse files
resolve conflicts and fix typo
1 parent 61d08f4 commit fee347d

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

custom/conf/app.example.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ ROUTER = console
992992
;;
993993
;; List of file extensions for which lines should be wrapped in the Monaco editor
994994
;; Separate extensions with a comma. To line wrap files without an extension, just put a comma
995-
;LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
995+
;LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,.livemd,
996996

997997
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
998998
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -1334,7 +1334,7 @@ ROUTER = console
13341334
;;
13351335
;; List of file extensions that should be rendered/edited as Markdown
13361336
;; Separate the extensions with a comma. To render files without any extension as markdown, just put a comma
1337-
;FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
1337+
;FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd,.livemd
13381338
;;
13391339
;; Enables math inline and block detection
13401340
;ENABLE_MATH = true

docs/content/doc/administration/config-cheat-sheet.en-us.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ In addition there is _`StaticRootPath`_ which can be set as a built-in at build
117117

118118
### Repository - Editor (`repository.editor`)
119119

120-
- `LINE_WRAP_EXTENSIONS`: **.txt,.md,.markdown,.mdown,.mkd,**: List of file extensions for which lines should be wrapped in the Monaco editor. Separate extensions with a comma. To line wrap files without an extension, just put a comma
120+
- `LINE_WRAP_EXTENSIONS`: **.txt,.md,.markdown,.mdown,.mkd,.livemd,**: List of file extensions for which lines should be wrapped in the Monaco editor. Separate extensions with a comma. To line wrap files without an extension, just put a comma
121121
- `PREVIEWABLE_FILE_MODES`: **markdown**: Valid file modes that have a preview API associated with them, such as `api/v1/markdown`. Separate the values by commas. The preview tab in edit mode won't be displayed if the file extension doesn't match.
122122

123123
### Repository - Pull Request (`repository.pull-request`)
@@ -277,6 +277,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
277277
- `CUSTOM_URL_SCHEMES`: Use a comma separated list (ftp,git,svn) to indicate additional
278278
URL hyperlinks to be rendered in Markdown. URLs beginning in http and https are
279279
always displayed
280+
- `FILE_EXTENSIONS`: **.md,.markdown,.mdown,.mkd,.livemd**: List of file extensions that should be rendered/edited as Markdown. Separate the extensions with a comma. To render files without any extension as markdown, just put a comma.
280281
- `ENABLE_MATH`: **true**: Enables detection of `\(...\)`, `\[...\]`, `$...$` and `$$...$$` blocks as math blocks.
281282

282283
## Server (`server`)

modules/setting/markup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var Markdown = struct {
3333
}{
3434
EnableHardLineBreakInComments: true,
3535
EnableHardLineBreakInDocuments: false,
36-
FileExtensions: strings.Split(".md,.markdown,.mdown,.mkd", ","),
36+
FileExtensions: strings.Split(".md,.markdown,.mdown,.mkd,.livemd,", ","),
3737
EnableMath: true,
3838
}
3939

modules/setting/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ var (
168168
Editor: struct {
169169
LineWrapExtensions []string
170170
}{
171-
LineWrapExtensions: strings.Split(".txt,.md,.markdown,.mdown,.mkd,", ","),
171+
LineWrapExtensions: strings.Split(".txt,.md,.markdown,.mdown,.mkd,.livemd,", ","),
172172
},
173173

174174
// Repository upload settings

0 commit comments

Comments
 (0)