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 raw directive #939

Merged
merged 2 commits into from
Mar 6, 2024
Merged

🥩 Add raw directive #939

merged 2 commits into from
Mar 6, 2024

Conversation

fwkoch
Copy link
Collaborator

@fwkoch fwkoch commented Feb 27, 2024

The raw directive lets you include raw latex in a myst file. The latex will be parsed using tex-to-myst:

```{raw} latex
\section{Hello World!}
\textbf{Hello World!} Here's some latex!
\begin{equation}
\gamma^2+\theta^2=\omega^2
\end{equation}
Pretty cool!
```

You can also use the raw directive to add unparsed text:

```{raw}
*Keep these astrisks!*
```

@fwkoch
Copy link
Collaborator Author

fwkoch commented Mar 6, 2024

I think there's more to do on this, in terms of getting this into static exports correctly, supporting html and other raw types, maybe combining logic with include - since raw is similar to include, the content is just embedded in the page...

For now though, i'll land this first pass!

@fwkoch fwkoch merged commit cbad68c into main Mar 6, 2024
4 checks passed
@fwkoch fwkoch deleted the feat/raw-latex branch March 6, 2024 16:33
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.

3 participants