We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6310125 commit 52ca96dCopy full SHA for 52ca96d
src/content-render/index.ts
@@ -38,9 +38,12 @@ export async function renderContent(
38
try {
39
template = await renderLiquid(template, context)
40
if (context.markdownRequested) {
41
- const md = await renderMarkdown(template, context)
42
-
43
- return md
+ // Skip the remark pipeline when there are no internal links to rewrite,
+ // since link rewriting is the only transformation the pipeline performs.
+ if (!/\]\(\s*<?\//.test(template) && !/\]:\s*\//.test(template)) {
44
+ return template.trim()
45
+ }
46
+ return await renderMarkdown(template, context)
47
}
48
49
const html = await renderUnified(template, context, options)
0 commit comments