sawhney17 / logseq-schrodinger

A plugin to export pages in Logseq to Hugo.
MIT License
322 stars 38 forks source link

Multiline Adminitions not converted correctly on export #28

Closed dom8509 closed 2 years ago

dom8509 commented 2 years ago

Problem: The regex pattern in the export script is only looking for adminitions terminated by a newline character. This does not work if the adminition extends over several lines.

Solution: Included newlines in the regex, excluded newlines from the pattern where they're not needed and terminated the search pattern by the string #+END_. Hope this works for all cases.

sawhney17 commented 2 years ago

Looks great! Thanks a ton for the fixes!