-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Allow custom markdown processors #1872
Allow custom markdown processors #1872
Conversation
…thub.com/gjtorikian/jekyll into gjtorikian-steal-envygeeks-custom-markdown-processors * 'steal-envygeeks-custom-markdown-processors' of git://github.com/gjtorikian/jekyll: Depend on Jekyll.logger.error, not $stderr Allow custom Markdown processors. New is implied by `raise`, 2nd is the message. Use $stderr, not STDERR, $stderr points to STDERR.
We should probably write more about what it does and how it works in a TomDoc block above. @envygeeks, want to give that a shot?
😂 With this (embiggened) emphasis on plugins, maybe it's appropriate to discuss how users can discover these features, outside of constantly updating the links on jekyllrb.com? /cc @benbalter @mattr- |
Would be happy to talk over some sort of search functionality. I have a horribly botched idea here: https://github.com/jekyll/plugins.jekyllrb.com We'd expose plugins via JSON (name, author, keywords, what have you) and could conduct a search based on a keyword or something, so I could run |
Not a bad idea. We could piggyback it onto the GitHub search API for fun and profit. |
@gjtorikian Piggyback into GitHub Search API? How do you mean? |
That's not a bad idea, especially if you add a gem addon or something that queries the websites json and then does a gem install of "jekyll-plugin-name" something like |
Requires that the custom markdown processor be a constant defined within
Jekyll::Converters::Markdown
. Example:If I want to add theoretical, biblical, mystical HTML Pipeline to my site as a custom processor, I define a converter plugin with
#initialize
and#convert
defined, perhaps something like this:Then in my
_config.yml
, I define the class I just created as mymarkdown
:Run your Jekyll build, et voilà!
If you're writing your own markdown processor and are not sure where to start despite my above example, take a look at the
KramdownParser
class, a living, breathing, sweating markdown parser.Props to @envygeeks and @gjtorikian. Let's make it happen!
Supersedes #1213, #1871. Closes #1871.