Skip to content

Commit

Permalink
Build in syntax and add footnote
Browse files Browse the repository at this point in the history
  • Loading branch information
samrobbins85 committed Dec 24, 2020
1 parent f457bb0 commit 8a47fc1
Show file tree
Hide file tree
Showing 6 changed files with 530 additions and 92 deletions.
3 changes: 2 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const remarkMath = require("remark-math");
const rehypeKatex = require("rehype-katex");
const rehypePrism = require("@mapbox/rehype-prism");
var footnotes = require("remark-footnotes");
const withMDX = require("@next/mdx")({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkMath],
remarkPlugins: [remarkMath, footnotes],
rehypePlugins: [rehypeKatex, rehypePrism],
},
});
Expand Down
101 changes: 74 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "latex-tailwind",
"description": "A Tailwind CSS plugin for automatically styling plain HTML content with defaults to look like a LaTeX document",
"version": "1.2.0",
"version": "2.0.0",
"license": "MIT",
"scripts": {
"dev": "next",
Expand Down Expand Up @@ -30,5 +30,8 @@
"tailwindcss": "^2.0.1",
"@mapbox/rehype-prism": "^0.5.0",
"latex-tailwind-syntax": "^1.0.0"
},
"dependencies": {
"remark-footnotes": "^3.0.0"
}
}
Loading

0 comments on commit 8a47fc1

Please sign in to comment.