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

rendering differences between the VS code integration and the Mac tool #7

Closed
sgandon opened this issue Feb 21, 2019 · 4 comments
Closed

Comments

@sgandon
Copy link

sgandon commented Feb 21, 2019

when rendering my markdown document in VSCode I get different rendering than in the Mac desktop client (0.0.14)
here is a screen shot of the diff:
https://github.com/sgandon/Git-sandbox/blob/master/Capture%20d%E2%80%99%C3%A9cran%202019-02-21%20%C3%A0%2016.00.21.png

@yhatt
Copy link
Member

yhatt commented Feb 22, 2019

Marp VSCode is based on brand-new Marp ecosystem (as known as Marp Next), and NOT the old Marp desktop application.

Your deck needs migration to suit to Marp Next if you want to preview in VSCode. There is a bit losing compatibility from Marp desktop app.

We have the documentation of Marpit Markdown (syntax from the new framework) and the features of Gaia theme.

@yhatt
Copy link
Member

yhatt commented Feb 22, 2019

I guess from your screenshot to need to change these directives...

  • <!-- page_number: true --> -> <!-- paginate: true --> (page_number -> paginate)
  • <!-- template: invert --> -> <!-- class: invert --> (template -> class)
  • <!-- *template: invert --> -> <!-- _class: invert --> (* -> _)

@sgandon
Copy link
Author

sgandon commented Feb 22, 2019

Ok thanks a lot.
I don't mind at all switching to the Marp Next but is there a simple way to export to pdf ?

@sgandon sgandon closed this as completed Feb 22, 2019
@yhatt
Copy link
Member

yhatt commented Feb 22, 2019

Currently you can use Marp CLI.

# Run below in terminal after installing Node.js
npx @marp-team/marp-cli slide-deck.md -o output.pdf

Marp VSCode will implement PDF export via Marp CLI in #4.

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

No branches or pull requests

2 participants