mpetrovich / stylemark

Generate interactive style guides from Markdown.
MIT License
218 stars 35 forks source link

Comments causing errors in sass-lint #76

Open mejiaj opened 5 years ago

mejiaj commented 5 years ago

I'm trying to use Stylemark and sass lint together, but I'm getting a sass-lint error because of the comment format.

My setup:

My sample SCSS comment:

/*
---
name: Forms
category: Global
---

Global form styles.

``forms.html
<form>
  <fieldset>
    <label for="">Search</label>
    <input type="search" />
  </fieldset>
  <textarea />
  <label for="">Select</label>
  <select name="" id="">
    <option value="option-1">option-1</option>
    <option value="option-2">option-2</option>
    <option value="option-3">option-3</option>
    <option value="option-4">option-4</option>
  </select>
  <input type="submit" />
</form>
``
*/

(Removed 3rd backtick to preserve formatting)

The error being generated:

image

Would it be possible to add support for other comment types? Like SCSS commenting with // or something like:

/**
 * My code
 */