-
Notifications
You must be signed in to change notification settings - Fork 450
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
Shortcodes in included rst files are not rendered #3648
Comments
This is related to #3206. It says:
Perhaps the process should be:
Is this correct? |
The replacement-with-placeholders step must happen before compilation, because a compiler might mess up the contents of your shortcodes (eg. replace What could be done in this specific case is this: when processing This would require:
If anyone wants to have a go at implementing this, we'll be happy to accept a pull request. |
(Closed by mistake.) |
I would like this behavior. |
Environment.
Description.
Trying to include other rst file doesn't reder shorcodes:
This doesn't render raw shortcode, only include the text as it is:
{{% raw %}} <span class="logo"/> {{% /raw %}}
.I think the problem is that Nikola only render shortcodes of the main rst file and not of the included files.
Although include directive (https://docutils.sourceforge.io/docs/ref/rst/directives.html#including-an-external-document-fragment) permits specify
parser
parameter. If this parser may be Nikola Parser, the problem should be resolved. Something like this:Is there anyway of render includes files?
Regards.
The text was updated successfully, but these errors were encountered: