kprussing / pandoc-acro

Pandoc filter for managing acronyms
BSD 2-Clause "Simplified" License
9 stars 4 forks source link

Quote blocks prevent acronym expansion for simple usage #2

Closed kprussing closed 3 years ago

kprussing commented 3 years ago

Similar to #1, the parsing of simple +key quotes fails inside quote blocks. Consider:

---
acronyms:
  mfe:
    short: mfe
    long: minimum failing example
...

-   '+mfe'
-   "+mfe"
-   '[+mfe]{}'
-   "[+mfe]{.long}"

One would expect all acronyms to expand, but what one gets instead is

-   '+mfe'
-   "+mfe"
-   'minimum failing example (mfe)'
-   "minimum failing example"

Note how spans do the right thing but bare quote blocks do not.

GuND0Wn151 commented 3 years ago

what kind of output your excpecting here like mfe - minimum failing example?

kprussing commented 3 years ago

Similar to what I said in the second code block but based on the README. But it's a little more subtle because of how the translation the LaTeX should work. I just pushed a test that checks for the expected output.