-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable Markdown Preview for .rzk.md files #2
Comments
Just for input, with Markdown Preview Enhanced this works perfectly fine in my setup. But you said you already tried this without success. Perhaps something can be done with your local setup? |
Oh. I've only used it from the command palette so far, and didn't know about the other features. However, luckily, I think I have a solution for you! {
"key": "ctrl+shift+enter",
"command": "markdown-preview-enhanced.runAllCodeChunks",
"when": "editorLangId =~ /.*markdown.*/"
},
{
"key": "shift+enter",
"command": "markdown-preview-enhanced.runCodeChunk",
"when": "editorLangId =~ /.*markdown.*/"
},
{
"key": "ctrl+shift+s",
"command": "markdown-preview-enhanced.syncPreview",
"when": "editorLangId =~ /.*markdown.*/"
},
{
"key": "shift+cmd+v",
"command": "markdown-preview-enhanced.openPreview",
"when": "editorLangId =~ /.*markdown.*/"
},
{
"key": "cmd+k v",
"command": "markdown-preview-enhanced.openPreviewToTheSide",
"when": "editorLangId =~ /.*markdown.*/"
},
{
"key": "shift+cmd+v",
"command": "markdown.showPreview",
"when": "!notebookEditorFocused && editorLangId =~ /.*markdown.*/"
},
{
"key": "cmd+k v",
"command": "markdown.showPreviewToSide",
"when": "!notebookEditorFocused && editorLangId =~ /.*markdown.*/"
} You could ship similar key bindings with the extension if you want, but then I would advise you to only match |
I'm not getting sync to work either. |
Is this resolved by #16 or is there still a missing feature? |
I think it is good enough, although it would be great to somehow have the option to have Markdown Preview Enhanced to work as well. In particular, MPE allows to sync scrolling code with Markdown and seems to work better with images, etc. |
I'm not sure what is the current status of this feature, but for me sync scrolling works with default markdown preview. I think having a searchable option (command/shortcut) might avoid some confusion with previews. PR that should fix it: I got error trying to run it locally, so hopefully someone with environment ready can check if it works 🥺 |
For what it's worth, scroll sync is working for me with Markdown Preview Enhanced as well. Sadly, I cannot find any resource for having a language (such as |
btw sometimes it stops working when file type is |
There is one thing that I don't know yet how to fix:
*.md
files have Markdown Preview, but*.rzk.md
do not anymore. Markdown Preview is useful when I insert SVG diagrams in the markdown files (e.g. see Associativity section for Segal Types). If you have ideas or you would like to submit a PR — it would be most welcome! :)Originally posted by @fizruk in #1 (comment)
The text was updated successfully, but these errors were encountered: