Astro Pandoc
Astro component for using pandoc to convert content. This allows you to embed any format pandoc supports.
- Supported formats https://pandoc.org/MANUAL.html#general-options
- Demo
- Requires you to have pandoc installed on your machine!
Usage
---
import { Pandoc } from "astro-pandoc";
---
<Pandoc caller={import.meta.url} file="Component.tex" extraArgs={["--webtex"]} /
Component.tex
\documentclass{article}
\usepackage{amsmath} % for the equation* environment
\begin{document}
This is a simple math expression \(\sqrt{x^2+1}\) inside text.
And this is also the same:
\begin{math}
\sqrt{x^2+1}
\end{math}
but by using another command.
This is a simple math expression without numbering
\[\sqrt{x^2+1}\]
separated from text.
This is also the same:
\begin{displaymath}
\sqrt{x^2+1}
\end{displaymath
…