Skip to content

Commit

Permalink
fix(export.markdown): fix html embed tags not being exported
Browse files Browse the repository at this point in the history
  • Loading branch information
ALVAROPING1 authored and vhyrro committed Jan 6, 2024
1 parent f3d4230 commit 5b2022c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/neorg/modules/core/export/markdown/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,10 @@ module.public = {
elseif
text == "embed"
and node:next_named_sibling()
and module.required["core.integrations.treesitter"].get_node_text(node:next_named_sibling())
== "markdown"
and vim.tbl_contains(
{ "markdown", "html" },
module.required["core.integrations.treesitter"].get_node_text(node:next_named_sibling())
)
then
return {
state = {
Expand Down

0 comments on commit 5b2022c

Please sign in to comment.