-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat run prettier on markdown #3093
Changes from 7 commits
090b5c3
ef18093
25bdaf9
f0380ef
ae0837e
020bc11
fbb9afe
ed4a670
bde357f
1d59d89
a39e9c2
7e3c662
33161e4
de0af15
70892ca
89ae2a9
0ad3da5
911fd9a
1173631
86370ed
918a862
eeca031
b837653
2d3c69d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ export const DEFAULT_CONFIG = { | |
toggleMode: OSX ? 'Command + Alt + M' : 'Ctrl + M', | ||
deleteNote: OSX ? 'Command + Shift + Backspace' : 'Ctrl + Shift + Backspace', | ||
pasteSmartly: OSX ? 'Command + Shift + V' : 'Ctrl + Shift + V', | ||
prettifyMarkdown: 'Shift + F', | ||
toggleMenuBar: 'Alt' | ||
}, | ||
ui: { | ||
|
@@ -65,7 +66,15 @@ export const DEFAULT_CONFIG = { | |
spellcheck: false, | ||
enableSmartPaste: false, | ||
enableMarkdownLint: false, | ||
customMarkdownLintConfig: DEFAULT_MARKDOWN_LINT_CONFIG | ||
customMarkdownLintConfig: DEFAULT_MARKDOWN_LINT_CONFIG, | ||
prettierConfig: ` { | ||
"trailingComma": "es5", | ||
"tabWidth": 4, | ||
"semi": false, | ||
"singleQuote": true, | ||
"parser":"markdown" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you append this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ZeroX-DG do you mean as in don't have it in the options that show up in the config and then append the parser property before use? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assuming i understood the comment correctly this should be addressed in #1d59d89 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep that's exactly what I wanted, thank you! |
||
}` | ||
|
||
}, | ||
preview: { | ||
fontSize: '14', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 4, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace this with
import
statement?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in #bde357f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!