-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: moving markdown editing to monaco #18231
Conversation
"name": "punctuation.definition.markdown" | ||
} | ||
}, | ||
"name": "markup.fenced_code.block.markdown", |
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.
its been awhile, but i'm pretty sure you find names here.....
'editor.foreground': '#F8F8F8', | ||
'editor.background': '#202028', | ||
'editorGutter.background': '#25252e', | ||
'editor.selectionBackground': '#353640', | ||
'editorLineNumber.foreground': '#666978', | ||
'editor.lineHighlightBackground': '#353640', | ||
'editorCursor.foreground': '#ffffff', | ||
'editorActiveLineNumber.foreground': '#bec2cc', |
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.
Nais I'll have to play around with this
monaco.editor.defineTheme(THEME_NAME, { | ||
base: 'vs-dark', | ||
inherit: false, | ||
rules: [], |
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.
...and add them to the rules here. take a look at the monaco.toml.theme.ts and monaco.flux.theme.ts in the same folder
@@ -4,12 +4,173 @@ import './style.scss' | |||
|
|||
export type MarkdownMode = 'edit' | 'preview' | |||
|
|||
const TEST_MODE = false |
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.
Nice
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.
Nice
this moves the markdown editor to monaco so that we can have a more unified "editing code" experience.
has autogrow, theming, all that great stuff