diff options
| author | marcellus <msimon_fr@hotmail.com> | 2025-04-14 18:00:23 +0200 |
|---|---|---|
| committer | marcellus <msimon_fr@hotmail.com> | 2025-04-14 18:00:23 +0200 |
| commit | ec8b70c184b847f886e63f9718a9cb1329ae71d2 (patch) | |
| tree | 75fb15602be9d400e3395a12456c91672a7f0357 /.obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua | |
| parent | 51584e1fe07456a01dc14504b214d068c62e8fe6 (diff) | |
chore: rm-d .obsidian
Diffstat (limited to '.obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua')
| -rwxr-xr-x | .obsidian/plugins/obsidian-enhancing-export/lua/math_block.lua | 68 |
1 files changed, 0 insertions, 68 deletions
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 - - - - - - |
