-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add automatic linking to markdown #34
Comments
Hi @lorenzo93, I think that, apparently, markdown linking is supposed to work but is not actually working, or at least it's almost there. I made a simple test using this source:
and the following
which produces the following output when compiled using
As you can see the references are correctly added, however I can see various issues:
Unfortunately I don't speak Ruby, so I don't know how to help solving these issues. I hope, however, someone among the maintainers will take a look at this and could use my comment as a starting point. Thanks for the consideration. |
Thanks @mttbernardini, Unfortunately I don't speak Ruby too, so correcting the behavior could be impossibile for me. Hoping someone will fix this bug |
I'll take care of it once I have some time to spare! |
Some responses to @mttbernardini's questions:
|
Actually, I'm referring to standard GitHub repository navigation, not GitHub Pages. I would agree if that were the case, but in a regular GitHub repository, GitHub expects links to point directly to the .md files. In the wikis it doesn't even expect an extension, so I don't know how this should be handled in that case 🤔. For GitHub pages I don't see the point in using the md files instead of using directly the html files generated by But anyway, since use cases can really vary, maybe some kind of option/configuration for this is needed? Like an option to specify the extension, or using different types of |
Ah, I see. GitHub repo navigation is a special case. Yeah, I think an option will be needed. Let's think a little bit about what all targets people might be using with the
The GitHub repos could be handled with a An arbitrary transformation rule: that sounds pretty complex, and seems like an obscure use case to me. I'm not even sure how that would work: maybe the user would supply a Ruby function that took a man page specification and returned the relative link path? Maybe we should just not support that until someone actually asks for it with a concrete use case? |
I kinda have two possible ideas:
This should cover most use cases without getting too much into the details of each of them. What do you think? PS:
I agree with this point, I think that (1) could be enough until someone actually asks for a different (possibly better) way of doing this. |
Hi,
I'm starting to work with your tool to make man-pages for my app.
I've managed to get the automatic linking feature working in the HTML files with index.txt.
I want to publish also the markdown version to GitHub Wiki, is there a way to make the automatic linking working also in markdown output? (
--markdown
option)Thanks in advance
The text was updated successfully, but these errors were encountered: