-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
Use custom helper methods from within markdown #602
Comments
Could you describe in some more detail how that would work? I don't know of any facility in Markdown for calling arbitrary methods. You can of course chain templates to get this: |
Basically I'm looking for a way to ease embedding elements into blog posts. I took a short glance at octopress and found they provide a lot of plugins; eg. for embedding Gists, Youtube or Vimeo videos. At a first glance it looked like they were just calling these from markdown templates, then I also found your previous contribution. I just took a closer look and I think these are actually liquid tags instead. But as far as I could see there is currently no (documented?) way of extending middleman in the same way. Right? |
I'm not sure, but I think Middleman should support Liquid templates, and then you could probably just load the Octopress extensions. I've thought about it before but haven't gotten around to trying it. |
We do support Liquid. |
@bhollis said:
Are you sure? That doesn't seem to work for me, it seems to ignore the markdown and treat it as if it were just |
@bhollis nevermind, it works now after switching to redcarpet! I have the following config:
|
I'm using redcarpet and trying to use tag helpers inside
But this doesn't:
I get this error:
I've got two questions, 1) is this supposed to work, and 2) if it did, could I have Markdown content inside the tag helper? |
I don't remember, does |
Yep, that was it, thanks! Maybe that should be mentioned on http://middlemanapp.com/helpers/ ? |
I would like to call custom middleman helper methods from within markdown texts.
#521 + #544 already added support for middleman's image and link helpers, this code would have to be more generalized.
The text was updated successfully, but these errors were encountered: