diff --git a/src/main/java/org/jabref/migrations/PreferencesMigrations.java b/src/main/java/org/jabref/migrations/PreferencesMigrations.java index 21719e6403d..e9a673f4b3b 100644 --- a/src/main/java/org/jabref/migrations/PreferencesMigrations.java +++ b/src/main/java/org/jabref/migrations/PreferencesMigrations.java @@ -326,7 +326,7 @@ private static void migrateTypedKeyPrefs(JabRefPreferences prefs, Preferences ol */ protected static void upgradePreviewStyle(JabRefPreferences prefs) { String currentPreviewStyle = prefs.get(JabRefPreferences.PREVIEW_STYLE); - String migratedStyle = currentPreviewStyle.replace("\\begin{review}

Review: \\format[HTMLChars]{\\review} \\end{review}", "\\begin{comment}

Comment: \\format[HTMLChars]{\\comment} \\end{comment}") + String migratedStyle = currentPreviewStyle.replace("\\begin{review}

Review: \\format[HTMLChars]{\\review} \\end{review}", "\\begin{comment}

Comment: \\format[Markdown,HTMLChars]{\\comment} \\end{comment}") .replace("\\format[HTMLChars]{\\comment}", "\\format[Markdown,HTMLChars]{\\comment}") .replace("\\bibtextype\\begin{bibtexkey} (\\bibtexkey)", "\\bibtextype\\begin{citationkey} (\\citationkey)") .replace("\\end{bibtexkey}
__NEWLINE__", "\\end{citationkey}

__NEWLINE__"); diff --git a/src/main/java/org/jabref/model/entry/field/StandardField.java b/src/main/java/org/jabref/model/entry/field/StandardField.java index 528c6627227..7ca1a65e842 100644 --- a/src/main/java/org/jabref/model/entry/field/StandardField.java +++ b/src/main/java/org/jabref/model/entry/field/StandardField.java @@ -14,7 +14,7 @@ */ public enum StandardField implements Field { - ABSTRACT("abstract", FieldProperty.MULTILINE_TEXT, FieldProperty.MARKDOWN), + ABSTRACT("abstract", FieldProperty.MULTILINE_TEXT), ADDENDUM("addendum"), ADDRESS("address"), AFTERWORD("afterword", FieldProperty.PERSON_NAMES), @@ -104,7 +104,7 @@ public enum StandardField implements Field { PRIMARYCLASS("primaryclass"), RELATED("related", FieldProperty.MULTIPLE_ENTRY_LINK), REPORTNO("reportno"), - REVIEW("review", FieldProperty.MULTILINE_TEXT, FieldProperty.VERBATIM), + REVIEW("review", FieldProperty.MULTILINE_TEXT, FieldProperty.VERBATIM, FieldProperty.MARKDOWN), REVISION("revision"), SCHOOL("school"), SERIES("series"), diff --git a/src/main/java/org/jabref/preferences/JabRefPreferences.java b/src/main/java/org/jabref/preferences/JabRefPreferences.java index 4fb73df336a..fe106584d86 100644 --- a/src/main/java/org/jabref/preferences/JabRefPreferences.java +++ b/src/main/java/org/jabref/preferences/JabRefPreferences.java @@ -816,7 +816,7 @@ private JabRefPreferences() { "\\begin{pages}
p. \\format[FormatPagesForHTML]{\\pages}\\end{pages}__NEWLINE__" + "\\begin{abstract}

Abstract: \\format[HTMLChars]{\\abstract} \\end{abstract}__NEWLINE__" + "\\begin{owncitation}

Own citation: \\format[HTMLChars]{\\owncitation} \\end{owncitation}__NEWLINE__" + - "\\begin{comment}

Comment: \\format[HTMLChars]{\\comment}\\end{comment}__NEWLINE__" + + "\\begin{comment}

Comment: \\format[Markdown,HTMLChars]{\\comment}\\end{comment}__NEWLINE__" + "__NEWLINE__"); // set default theme