-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
The attached test project uses .RenderShortcodes to include Markdown from snippets files, as illustrated in the Hugo docs.
The test project snippet contains the following markdown:
"Hello, world!"
For more greetings, see <http://example.com>.In Hugo 0.145.x, this gets rendered as:
<p>“Hello, world!”</p>
<p>For more greetings, see <a href="http://example.com">http://example.com</a>.</p>As of Hugo 0.146.x, this gets rendered as:
<p>"Hello, world!"</p>
<p>For more greetings, see <http://example.com>.</p>Notice how the raw URL markdown syntax is escaped, and the rendered plain " instead of left- and right quotes.
The layout files are as follows:
The functionality of getting the markdown snippets is implemented via layouts/partials/getmd.md. The getmd.md partial is reused in other partials. The include shortcode is just a wrapper so that the get functionality can be used directly from markdown files.
Here's the test project: hugo-getmd-test.zip
