[go: up one dir, main page]

Menu

#281 Support colon in meta directive name

closed-fixed
None
5
2020-03-03
2015-07-11
No

Currently using a colon in a meta directive name produces an error. Twitter Cards and Open Graph use colons in their names. An example for Twitter Cards could look like this:

.. meta::
    :twitter:card: summary
    :twitter:site: @nytimesbits
    :twitter:creator: @nickbilton

Unfortunately this raises an "Invalid meta directive." error. Is there a possibility to escape the colons? Adding a backslash in front of the middle colon raises no error but the backslash is not removed when rendering the HTML and ends up in the document.

Discussion

  • David Goodger

    David Goodger - 2017-08-16
    • status: open --> closed-fixed
    • assigned_to: David Goodger
     
  • David Goodger

    David Goodger - 2017-08-16

    Fixed in r8169. You can use a backslash to escape the colons. But here the embedded colons are unambiguous so I enabled their use without backslash-escapes as well.

    Sorry for the long delay. This was recently brought to my attention. Thanks for the bug report!

     

Log in to post a comment.