Skip to content

Commit

Permalink
🐛 LaTeX: Capture framed environment (#123)
Browse files Browse the repository at this point in the history
See: #115
  • Loading branch information
rowanc1 committed Jan 5, 2023
1 parent d2547ef commit 8cdb584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-snakes-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'myst-to-tex': patch
---

Capture the `framed` environment when creating admonitions
1 change: 1 addition & 0 deletions packages/myst-to-tex/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const handlers: Record<string, Handler> = {
state.write(`}`);
},
admonition(node, state) {
state.usePackages('framed');
state.renderEnvironment(node, 'framed');
},
admonitionTitle(node, state) {
Expand Down

0 comments on commit 8cdb584

Please sign in to comment.