From 521a2505c7b7029fbe94a5cbdd4a7fb61f67b1e1 Mon Sep 17 00:00:00 2001 From: Jedibezy Date: Sat, 23 Oct 2021 15:08:27 -0700 Subject: [PATCH] Fixed table, switched to global emoji, improved github markdown support. --- astro.config.mjs | 6 +++--- package.json | 7 ++++++- src/components/PageContent/PageContent.astro | 15 +++++++++++---- src/layouts/MainLayout.astro | 5 ++++- src/pages/docs/en/tutorial-quest.md | 4 +++- 5 files changed, 27 insertions(+), 10 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 58f4f1a..adb6aa5 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -18,8 +18,8 @@ export default /** @type {import('astro').AstroUserConfig} */ ({ tailwindConfig: './tailwind.config.js', }, markdownOptions: { - remarkPlugins: [ - [import('remark-emoji'), { behavior: 'prepend'}] - ] + remarkPlugins: + ['remark-emoji', 'remark-gfm', 'remark-slug', '@silvenon/remark-smartypants'], + rehypePlugins: ['rehype-autolink-headings'], } }); diff --git a/package.json b/package.json index 78b410f..f7c8b80 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,13 @@ }, "dependencies": { "@docsearch/react": "^1.0.0-alpha.27", + "@silvenon/remark-smartypants": "^1.0.0", "@tailwindcss/typography": "^0.4.1", - "remark-emoji": "^3.0.1" + "rehype-autolink-headings": "^6.1.0", + "remark-emoji": "^3.0.1", + "remark-gfm": "^3.0.0", + "remark-sectionize": "^1.1.1", + "remark-slug": "^7.0.0" }, "devDependencies": { "@astrojs/renderer-preact": "^0.2.2", diff --git a/src/components/PageContent/PageContent.astro b/src/components/PageContent/PageContent.astro index a83d4fc..a5622b8 100644 --- a/src/components/PageContent/PageContent.astro +++ b/src/components/PageContent/PageContent.astro @@ -6,27 +6,34 @@ import MoreMenu from '../RightSidebar/MoreMenu.astro'; import TableOfContents from '../RightSidebar/TableOfContents.tsx'; --- -
+ +

{title}

- +