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

yaml header has no effect #46

Closed Hoffenbar closed 3 years ago

Hoffenbar commented 3 years ago

putting this in front of a document doesn't alter anything;

---
title: logwrapper
style: |
  @page {
    size: A4;
    margin-top: 2cm;
  }
  h1 {
    color: purple;
  }
  p {
    font-size: 1.1em;
  }
---

I'd expected at least a changed h1-Header color....

mb21 commented 3 years ago

The style metadata field was removed in PanWriter 0.7.0. You can do this easier now by clicking the icon in the top left and adding your CSS to the "Include CSS" field, see the screenshot in https://github.com/mb21/panwriter#export-preview-to-pdf (it will insert the correct metadata into the document)

mb21 commented 3 years ago

Okay, I've just released PanWrtier 0.7.2 with a few bug fixes for the paged preview... let me know if you find anything else!