Unibeautify / unibeautify

One Beautifier to rule them all, One Beautifier to clean them, One Beautifier to bring them all and in the darkness sheen them
https://unibeautify.com/
MIT License
544 stars 41 forks source link

Yaml definitions on Handlebars files #240

Open Lukas238 opened 5 years ago

Lukas238 commented 5 years ago

The bug

I have a handlebar file with YAML declarations on top.

---
layout: default
page_id: upgrades
body_css: page-upgrades
---
<section id="content">
    <article>
        <h2>Title</h2>
        <p>Lorem ipsum dolo sit amet.</p>
    </article>
</section>

After I beautify it the YAML declaration is modified:

-- -layout : default
page_id : upgrades
body_css : page - upgrades
-- - <section id="content">
    <article>
        <h2>Title</h2>
        <p>Lorem ipsum dolo sit amet.</p>
    </article>
</section>

System (please complete the following information):

Additional information: This way to include YAML in a handlebar file is part of the workflow of https://assemble.io/ gulp static site generator.

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.78. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.