Skip to content
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

Custom Markdown Extensions #17

Open
Jotschi opened this issue Nov 5, 2012 · 1 comment
Open

Custom Markdown Extensions #17

Jotschi opened this issue Nov 5, 2012 · 1 comment

Comments

@Jotschi
Copy link

Jotschi commented Nov 5, 2012

It would be great to be able to add custom markdown extensions. In my guide i want to be able to write:

CUSTOM_NOTE: "some text"

That textile code should result in any html i specified. I noticed that the guides/markdown_extensions already contains some extensions. I want to be able to add a custom ruby file to my guides project which itself contains the custom markdown extensions. I don't want to modify the guides sources itself.

@Jotschi
Copy link
Author

Jotschi commented Nov 5, 2012

The best thing would be to add a dynamic require inside of guides.rb

e.g:

require "#{root}/guides_extension"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant