From ec8b70c184b847f886e63f9718a9cb1329ae71d2 Mon Sep 17 00:00:00 2001 From: marcellus Date: Mon, 14 Apr 2025 18:00:23 +0200 Subject: chore: rm-d .obsidian --- .../obsidian-enhancing-export/lua/math_block.lua | 68 ---------------------- 1 file changed, 68 deletions(-) delete mode 100755 .obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua (limited to '.obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua') diff --git a/.obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua b/.obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua deleted file mode 100755 index 380d96a..0000000 --- a/.obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua +++ /dev/null @@ -1,68 +0,0 @@ -traverse = 'topdown' - -math_block_text = nil -function process(el) - - -- MathBlock start or end - if el.t == 'Str' and el.text == '$$' then - if math_block_text == nil then -- start - math_block_text = '' - else -- end - local math_block = pandoc.Math('DisplayMath', '\n' .. math_block_text .. '\n') - math_block_text = nil - return math_block - end - return {} - end - - if math_block_text then - if (el.t == 'RawInline' or el.t == 'RawBlock') and el.format == 'tex' then - math_block_text = math_block_text .. el.text - return {} - elseif el.t == 'Str' then - math_block_text = math_block_text .. el.text - return {} - elseif el.t == 'SoftBreak' or el.t == 'BulletList' then - return {} - end - end - return el -end - -function RawInline(el) - return process(el) -end - -function RawBlock(el) - return process(el) -end - -function Str(el) - return process(el) -end - -function SoftBreak(el) - return process(el) -end - -function Header(el) - return process(el) -end - -function Para(el) - return process(el) -end - -function Plain(el) - return process(el) -end - -function BulletList(el) - return process(el) -end - - - - - - -- cgit v1.2.3