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

Add syntax highlighting to custom pages #7

Merged
merged 5 commits into from
Mar 16, 2023

Conversation

bradmering
Copy link
Contributor

This PR removes the markdown-it and dangerouslySetInnerHTML property, and replaces it with a custom theming in our ReactMarkdown. This enables code theming in custom markdown pages.

  • Enables code Prism code themes
  • Enables deep linking to h{n} tags with anchor links in custom pages
  • Supports html, javascript, css, yaml, and sass highlighting
  • Adds line numbers to code
  • Centralizes code highlighting and markdown code cleanup

@bradmering bradmering requested review from Natko and a user March 13, 2023 15:37
@bradmering bradmering merged commit 422da2d into main Mar 16, 2023
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.

2 participants