Closed Zhaopudark closed 3 months ago
I'm sure, you are right! You do not understand the match-case mechanism. ;-)
pf.Str is some kind of type not a variable, so your work around seems to me the only working way. Sorry. :-(
@NMarkgraf Thanks. I will consider the problem and paradigms more prudently later.
Thanks for this great project! 😄 I'm working on a Python module, pandoc-filter that based on this project. And I find it will be convenient if panflute can support the match-case mechanism better.
The basic match-case mechanism is as:
And, I want it to work on panflute classes. The expected syntax is as:
The above codes do not work in the current panflute version 2.3.0.
Maybe I do not understand match-case mechanism well and do not know panflute fully. My current alternative is
So, I think it will be convenient if panflute can support the match-case mechanism better. Thanks in advance. 🌞