Skip to content

Commit 20138b8

Browse files
authored
Merge pull request #1 from CrystalCommunication/feature-livemd-extension
Update documentation and defaults
2 parents 725615b + dd6c01f commit 20138b8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

custom/conf/app.example.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ ROUTER = console
968968
;;
969969
;; List of file extensions for which lines should be wrapped in the Monaco editor
970970
;; Separate extensions with a comma. To line wrap files without an extension, just put a comma
971-
;LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
971+
;LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,livemd,
972972
;;
973973
;; Valid file modes that have a preview API associated with them, such as api/v1/markdown
974974
;; Separate the values by commas. The preview tab in edit mode won't be displayed if the file extension doesn't match

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

+2
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ The following configuration set `Content-Type: application/vnd.android.package-a
276276
- `CUSTOM_URL_SCHEMES`: Use a comma separated list (ftp,git,svn) to indicate additional
277277
URL hyperlinks to be rendered in Markdown. URLs beginning in http and https are
278278
always displayed
279+
- `FILE_EXTENSIONS`: **.md,.markdown,.mdown,.mkd,.livemd**: List of file extensions that should be rendered/edited as
280+
Markdown. Seperate the extensions with a comma. To render files without any extension as markdown, just put a comma.
279281
- `ENABLE_MATH`: **true**: Enables detection of `\(...\)`, `\[...\]`, `$...$` and `$$...$$` blocks as math blocks.
280282

281283
## Server (`server`)

modules/setting/repository.go

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

0 commit comments

Comments
 (0)