-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not work with Sass syntax comments #12
Comments
Sassdown was constructed to parse Markdown syntax and the rendered output you are experiencing is therefore entirely correct ( |
I understand that is markdown's syntax. With that being the case, there should be some way to parse On Tue, Nov 5, 2013 at 3:44 PM, Jesper Hills [email protected]
|
Respectfully, Sass + Markdown was the whole purpose of Sassdown.
But again, that isn't Markdown. It's too strict and doesn't read like natural language. There are other living styleguide generating plugins that you could use if you require that amount of control over your comment syntax. Sassdown was created to be used with Handlebars/Markdown and I'm sticking to that. |
I think you may be misunderstanding me. I totally understand that. My question is regarding if the required comment syntax is
then this is not compatible with sass's indented syntax, as sass's indented syntax allows for
or the banner syntax with a space in front of each line after the first
It would be nice to offer compatibility with either syntax. |
Sorry, it does seem I misunderstood you. Your pasted comment in the first post included an asterisk on each line. At first, I assumed this would never work. But I've thought about this for a couple of days and we can leverage logical operators within Regex to accomplish this anyway. First, let us go through the various styles of comments we want to parse. Possible commenting syntax stylesEach of these are possible and valid. Each must successfully parse via Markdown into identical HTML. Left-aligned, unspaced/*
Navigation
==========
Tight example.
<span class="btn">Test</span>
*/ Left-aligned, spaced/*
Navigation
==========
Spacious example.
<span class="btn">Test</span>
*/ Indented/*
Navigation
==========
One-space indented example.
<span class="btn">Test</span>
*/ Asterisk-indented/*
* Navigation
* ==========
*
* Sass asterisk-delimited indented example.
*
* <span class="btn">Test</span>
*
*/ Asterisk-indented, unspaced/*
*Navigation
*==========
*Sass tight asterisk-delimited indented example.
* <span class="btn">Test</span>
*/ PS. I am not going to include inline |
@VinSpee Can you please update your |
seems to be working aside from newlines inside of code fences. How should we treat them? Ex:
is compiling as
rather than
|
Code fences should also be parsed. I've made the necessary modifications to allow for code-fenced blocks to be rendered into identical HTML now. See 3970ec6 for possible source syntax support. To clarify: fenced code blocks are now supported within any of the above styles of comment syntax Finally, commit 4e874dd has also enabled GitHub Flavoured Markdown to be matched and rendered instead if found, without requiring external options. Closing #6. @VinSpee grab Sassdown version 0.1.1 |
Looks like the source/example feature isn't working:
only results in the code being show, not an example as well. output:
edit; DOH. My bad. Seems to be clear. |
Confirm that's all good your end now? In your example above you have used four fences rather than three by the way. Just tested both of the following and either worked fine:
|
Yeah it's all good. Thanks! On Wed, Nov 13, 2013 at 4:16 AM, Jesper Hills [email protected]
|
No problem! |
given the following comment:
I expect the output to be
Headings
Headings examples ranging from H1-H4.
Instead, the output is:
Heading 1
Heading 2
Heading 3
Heading 4
The rendered HTML:
any thoughts on how to remedy this?
The text was updated successfully, but these errors were encountered: