Trying hard to port Markdown Preview Enhanced for Atom to vscode.
First time to write typescript, and it is awesome. I think I will write all my web projects in TypeScript from now on.
Below is a demo of the Atom version.
Right now only 50% done:
-
ctrl-shift-m for
Markdown Preview Enhanced: Open Preview
command. -
ctrl-shift-i for
Markdown Preview Enhanced: Image Helper
command. -
shift-enter for
Markdown Preview Enhanced: Run Code Chunk
command. -
ctrl-shift-enter for
Markdown Preview Enhanced: Run All Code Chunks
command.
For more features that will be supported in the future, check Markdown Preview Enhanced for atom.
- Done supporting eBook export.
- @import 70% done. Now support importing every external files except
.js
and.pdf
files. - Done implementing refresh button in preview.
- Code Chunk implementation is now 60% done. LaTeX and JavaScript don't work yet.
Please note that Code Chunk of Markdown Preview Enhanced for Atom is outdated. The syntax of the vscode version is the newest. You need to havecmd
set to declare a code chunk.
- Scroll sync is partially done.
- Done supporting
mermaid
,PlantUML
andviz.js
(GraphViz). - Done supporting
[TOC]
. - Done supporting
MathJax
andKaTeX
. - Done sidebar TOC.
- Done back to top button.
- Done supporting front matter.
- Done supporting
reveal.js
presentation mode. Try inserting<!-- slide -->
to your markdown. - Done
Open in Browser
. - Done HTML export.
- Done
prince
PDF export. - Done
Image Helper
. - Done supporting single preview.
TODO
It would be great if you can answer my following questions to help develop this extension.
- Is the a
onDidChangeScrollTop
function forTextEditor
in vscode. So that I can track the change of scrollTop position of the text editor. - Can I manually set the
scrollTop
ofTextEditor
? - How to programmatically close my preview by
uri
? I tried to implement theToggle Preview
command but failed because I don't know how to close a preview. So now onlyOpen Preview
is provided.
Search markdown-preview-enhanced
in settings.
TODO
TODO