mdcss icon indicating copy to clipboard operation
mdcss copied to clipboard

Multiple comment blocks

Open stephenway opened this issue 9 years ago • 3 comments

Being able to comment throughout a given partial file would be nice. Currently when you have multiple comments in a file it treats it as a completely separate set of documentation.

Is there a way that mdcss could account for extra comment blocks formatted the same way in the same file?

stephenway avatar Feb 02 '16 20:02 stephenway

+1

It would be really nice to "extend" an existing mdcss block like:

/*---
title: Section XY
name: section_xy
---

Lorem Ipsum
*/
.some-class { ... }

.more-classes { ... }

/*---
extends: section_xy
---

Dolor sit
*/

The result should be something like:

<section>
<h2 id="section_xy">Section XY</h2>
<p>Lorem Ipsum</p>
<p>Dolor sit</p>
</section>

@stephenway if I misinterpreted your proposal and what you mean is different from what I wrote above, please let me now and I open a separate issue.

maoberlehner avatar Feb 27 '16 20:02 maoberlehner

Nope, you got it. :+1:

stephenway avatar Feb 28 '16 04:02 stephenway

After trying this out, I get multiple sections https://github.com/postcss/postcss-simple-vars/issues/48

stephenway avatar Jun 17 '16 23:06 stephenway