Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Multiple comment blocks #14

Open
stephenway opened this issue Feb 2, 2016 · 3 comments
Open

Multiple comment blocks #14

stephenway opened this issue Feb 2, 2016 · 3 comments

Comments

@stephenway
Copy link
Collaborator

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?

@maoberlehner
Copy link

+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.

@stephenway
Copy link
Collaborator Author

Nope, you got it. 👍

@stephenway
Copy link
Collaborator Author

After trying this out, I get multiple sections
postcss/postcss-simple-vars#48

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants