rstfmt icon indicating copy to clipboard operation
rstfmt copied to clipboard

feat: skip over unknown directives

Open 3-w-c opened this issue 2 years ago • 2 comments

Fixes #14, #15

This is my first contribution to anything RST, so it might not be the best approach 😅

Test file:

######################
 Prior research
######################

According to :cite:t:`nutt2009`

Before this PR:

docutils.utils.SystemMessage: :16: (ERROR/3) Unknown interpreted text role "cite:t".

After this PR:

  • :cite:p: kept as-is 🥳

Future enhancement could be to output warnings, maybe?

3-w-c avatar Jan 14 '22 22:01 3-w-c