sergiocorreia / panflute

An Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions
http://scorreia.com/software/panflute/
BSD 3-Clause "New" or "Revised" License
500 stars 59 forks source link

Fix invalid escape sequence in panflute/io.py #213

Closed jacobwhall closed 2 years ago

jacobwhall commented 2 years ago

Ran pytest today and got the following warning:

panflute/panflute/io.py:140: DeprecationWarning: invalid escape sequence '\*'

This PR removes the offending \*s.

I hope to contribute something more substantial this weekend, I'm thinking of writing the use_pandoc option for stringify()

sergiocorreia commented 2 years ago

Hi Jacob,

Thanks for the PR (and btw improving stringify is more than welcome, as as you know it's quite limited in scope)

On the PR, I just re-ran pytest and didn'g got any warnings (on python 3.10.4). Also, I vaguely recall the reasons, but it might be because otherwise having "**" would not be shown and instead would be recognized as sphynx formatting in the documentation?

Cheers, S

jacobwhall commented 2 years ago

I was reproducing this bug in multiple conda environments...but with a refresh it is completely gone. A good reminder to freshen up my env before jumping to conclusions!