Skip to content

Commit ccd313c

Browse files
author
Maxime Mangel
committed
Add default plugin from Nacara layout in the blog-page layout, this re-add anchor generation for the titles
Fix MangelMaxime/Nacara#189
1 parent a7805ad commit ccd313c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/blog-page.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react";
22
import * as pageMinimal from "nacara-layout-standard/dist/Page.Minimal.js";
3+
import { rehypePlugins, remarkPlugins } from "nacara-layout-standard/dist/Page.Standard.js";
34

45
const AuthorImage = ({ imageLink }) => {
56
return <figure className="image is-96x96 author-image">
@@ -63,7 +64,9 @@ const render = async (rendererContext, pageContext) => {
6364
const pageContent =
6465
await rendererContext.MarkdownToHtml(
6566
pageContext.Content,
66-
pageContext.RelativePath
67+
pageContext.RelativePath,
68+
remarkPlugins,
69+
rehypePlugins
6770
);
6871

6972
return pageMinimal.render(

0 commit comments

Comments
 (0)