Skip to content
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

Merged
merged 2 commits into from
May 26, 2020
Merged

Conversation

drdelambre
Copy link
Contributor

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

@drdelambre drdelambre requested a review from alexpaxton May 26, 2020 21:38
"name": "punctuation.definition.markdown"
}
},
"name": "markup.fenced_code.block.markdown",
Copy link
Contributor Author

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.....

Comment on lines +11 to +18
'editor.foreground': '#F8F8F8',
'editor.background': '#202028',
'editorGutter.background': '#25252e',
'editor.selectionBackground': '#353640',
'editorLineNumber.foreground': '#666978',
'editor.lineHighlightBackground': '#353640',
'editorCursor.foreground': '#ffffff',
'editorActiveLineNumber.foreground': '#bec2cc',
Copy link
Contributor

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: [],
Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Copy link
Contributor

@alexpaxton alexpaxton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@drdelambre drdelambre merged commit 448b598 into master May 26, 2020
@drdelambre drdelambre deleted the alex_monaco_markdown branch May 26, 2020 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants