mb21 / panwriter

Markdown editor with pandoc integration and paginated preview.
https://PanWriter.com
GNU General Public License v3.0
1.03k stars 49 forks source link

preview pages #22

Closed Li-An closed 4 years ago

Li-An commented 4 years ago

Hello, I am very interested with the pages preview feature and I tried the example 

---
title: my document
style :
@page {
size: A4;
margin-top : 2cm;
}
---

but it only shows the code.

2020-05-05_11h54_51
mb21 commented 4 years ago

that part is YAML... you need to get the indentation right... you can validate e.g. on http://www.yamllint.com/

this should work:

---
title: my document
style: |
  @page {
    size: A4;
    margin-top: 2cm;
  }
---
Li-An commented 4 years ago

Sorry, I did not receive the notification for your answer. Thanks. I will take a look.