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
Support shortcodes (Fix #172) #173
Conversation
body = m2h.markmin2html(data, pretty_print=True) | ||
out_f.write(body) | ||
output = m2h.markmin2html(data, pretty_print=True) | ||
output, shortcode_deps = self.site.apply_shortcodes(output, filename=source, with_dependencies=True, extra_context=dict(post=post)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You aren’t getting the post object anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, I could not test the py2-only plugins. Fixing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Also, could we replace all this copy-pasted boilerplate with a single function in |
Well, it would bw a couple of calls... I don't know. I just copy/pasted the code that works. |
Feel free to go either way and merge if you think copy-paste will be enough. |
Ack, will wait for tests and merge. |
Adding shortcode support to almost all plugin compilers. (Issue #172)