gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.68k stars 856 forks source link

prettier ignore directive not compatible with class #630

Open unlight opened 4 years ago

unlight commented 4 years ago
<!-- prettier-ignore-start -->
class: center, middle, no-inverse
# Overview
.footnote[2020]

---

<!-- prettier-ignore-end -->

Result

image

markdown above loaded by html

  <body>
  <script src="https://remarkjs.com/downloads/remark-latest.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var slideshow = remark.create({
        ratio: '4:3',
            sourceUrl: 'presentation.md',
        highlightLanguage: 'javascript',
        highlightStyle: 'monokai',
        });
    </script>
  </body>
unlight commented 4 years ago

However,

<!-- prettier-ignore-start -->
<!-- class: center, middle, no-inverse -->
# Overview
.footnote[2020]
---

Works ok.

Issue can be closed, but behavior should be mentioned in documentation.