-
Notifications
You must be signed in to change notification settings - Fork 570
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
Each document block is treated as its own markdown document, should be each file. #268
Comments
This may be a regression of #100 @justindujardin created #112 which made a single call to showdown. Since then the markdown parser has been switched to marked, which still supports link references. It looks like the single call situation is no longer the case. https://github.com/jashkenas/docco/blob/master/docco.js#L114-L122 |
Is this functionality that others would find useful. I have code working to add this functionality. I modified the Inside
As you can tell I made the changes in I know that regex doesn't do a perfect job of matching urls. I am looking through |
I think perhaps a simpler way to handle this would be to pass the entire document through marked once, rather than multiple times, just as it used to be after #112 |
I'm going to kind of munge this issue with #227. Both issues relate to the same thing: Marked considers each doc block as a standalone markdown file. #227 is as follows: I'm not sure how feasible this is, but it'd be really nice if one could do ordered lists across blocks of code in Docco. Currently if you do:
Markdown correctly translates that in to:
(formatted as an ordered list). However, if you try to mix code in:
you will get the code on the right, and on the left you'll see:
this makes sense in Markdown terms because if you do regular Markdown of:
Markdown will consider that to be two separate lists, not one list broken up. However, what that translates to in Docco terms is that one can never use a decimal point-based list to spell out steps. You can't use hashes either, eg.:
because that gets formatted as a header. So the only option I can see for doing lists in Docco is to use a parenthesis:
and since that just produces While I realize that this might be difficult to implement (since Docco relies on Markdown), lists are a very useful thing to have when creating documentation, so please consider providing some sort of solution for them. |
which is a thing.
then if I have my code next
and then because I think it looks nice I add the link ref at the bottom of the page
The link doesn't work. It seems the blocks can't reference each other?
The text was updated successfully, but these errors were encountered: