-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
When the markdown provider is redcarpet PHP-markdown style tables should be rendered. #623
Comments
Closing this because unfortunately I don't have enough time to take a stab at this feature-- I do think it would be a useful addition though. If you want to implement it and submit a pull request with proper tests I would likely merge it in. |
@lsegal Okay, I'll do it. |
…e tables one. refs lsegal#623
…e tables one. refs lsegal#623
Has been reimplemented as |
I dropped the ball on this one. thanks for this @akzhan. |
You need separate This is because YARD Configuration class is hard to extend. |
Looks like regru/reg_api2-ruby@75ae738 |
i wonder how we could make this better. is there an API you can think of? |
maybe something generic like |
All of these ways need to change YARD itself. This way was revoked by @lsegal. You have another option to use environment variable named |
indeed, that's fine. i think this needs a solution from YARD, if I use X plugins I have X custom files? redcarpet_ext:
tables: true did you propose the same? |
Yes, we need any mechanism to provide plugin options with yard ones. But it must be resolved by @lsegal, I suppose. |
You don't need a separate file per plugin. You can always add options to the yard doc command the same way that @akzhan added it in #698. The only problem with adding args is if the args you add have to be processed before the options get registered (which is why I pointed out it can be an awkward story), but in the case of this plugin I think it would be fine to register switches. Of course failing switches there is always the option to use environment variables, which also avoids separate files. In other words, it's already possible to do this. |
@lsegal These options will be reported by YARD as unrecognnized I suppose. This is because plugin loads at same phase as parsing of config. |
Now |
FWIW, I found this thread trying to move existing docs from rdoc to markdown, and your gem was just what I needed @akzhan. Thanks 🌵 |
Tables now supported on http://rubydoc.info (docmeta/rubydoc.info#67). Thanks to @lsegal. |
w00t! |
@lsegal Is there any reason not to include Is there some backwards-compat problem with that option in older versions of Redcarpet? |
@bclennox you can see my original reply for my stance on this. Patches are accepted, but none were made. |
@lsegal Ah, sorry. I just misread. I'll take a stab. |
Now |
❤️ |
The documentation(http://rdoc.info/github/tanoku/redcarpet/master/file/README.markdown) seems to suggest you can add support for PHP-markdown style tables by passing an option to
Markdown.new(…)
. It'd be cool if YARD could support this out of the box.The text was updated successfully, but these errors were encountered: