mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 17:42:44 +08:00
DEV: Removing unused lines of code.
The code had no effect on how the markdown-it is being configured.
This commit is contained in:
parent
7138ebed05
commit
bdc868246f
|
@ -374,7 +374,7 @@ export function setup(opts, siteSettings, state) {
|
|||
opts.engine = window.markdownit({
|
||||
discourse: opts.discourse,
|
||||
html: true,
|
||||
breaks: opts.discourse.features.newline,
|
||||
breaks: !siteSettings.traditional_markdown_linebreaks,
|
||||
xhtmlOut: false,
|
||||
linkify: siteSettings.enable_markdown_linkify,
|
||||
typographer: siteSettings.enable_markdown_typographer,
|
||||
|
|
|
@ -33,7 +33,6 @@ export function buildOptions(state) {
|
|||
emojiUnicodeReplacer,
|
||||
lookupUploadUrls,
|
||||
previewing,
|
||||
linkify,
|
||||
censoredRegexp,
|
||||
disableEmojis,
|
||||
customEmojiTranslation,
|
||||
|
@ -41,14 +40,7 @@ export function buildOptions(state) {
|
|||
watchedWordsLink,
|
||||
} = state;
|
||||
|
||||
// These are markdown-it rules defined in https://github.com/markdown-it/markdown-it#manage-rules.
|
||||
let features = {
|
||||
"bold-italics": true,
|
||||
"auto-link": true,
|
||||
html: true,
|
||||
linkify: linkify !== false,
|
||||
newline: !siteSettings.traditional_markdown_linebreaks,
|
||||
};
|
||||
let features = {};
|
||||
|
||||
if (state.features) {
|
||||
features = deepMerge(features, state.features);
|
||||
|
|
Loading…
Reference in New Issue
Block a user