Skip to content
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

Disable automatic conversion of Markdown to HTML #12

Merged
merged 4 commits into from
Jul 31, 2021
Merged

Conversation

mtsknn
Copy link
Owner

@mtsknn mtsknn commented Jul 31, 2021

We'll call md.render(content) manually in layouts.

This way we can access pages' raw Markdown (via content) which wouldn't otherwise be possible (11ty/eleventy#1206).

Now getTocItems.js should be much faster: instead of parsing HTML using jsdom, we parse Markdown using markdown-it. This might be cleaner too. Plus we can ditch the jsdom dependency.

@netlify
Copy link

netlify bot commented Jul 31, 2021

✔️ Deploy Preview for mtsknn ready!

🔨 Explore the source changes: 62a5a4d

🔍 Inspect the deploy log: https://app.netlify.com/sites/mtsknn/deploys/6104d7121d8fac0007be16f8

😎 Browse the preview: https://deploy-preview-12--mtsknn.netlify.app

@mtsknn mtsknn merged commit 2c1ea0d into master Jul 31, 2021
@mtsknn mtsknn deleted the manual-markdown branch July 31, 2021 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant