Infra: add newlines so admonition text is shown#3756
Conversation
And remove text duplicating that inserted by the template.
Yhg1s
left a comment
There was a problem hiding this comment.
The need for a newline feels a bit like a footgun, is there a way to address that, or have it show up as a lint warning?
|
Will check into that before doing the next batch, it might be something to do with how these custom directives set |
|
AFAIK that's normal ReST syntax: the blank line separates a directive's arguments/options from its content. I don't see a good way to disable the argument-continuation/option block, short of parsing the entire directive manually (using Perhaps it'd be best to warn/error on suspicious cases:
|
|
I wrote a long blurb here and realised it would be easier to just draft up the change -- so, filed #3765 as a potential way forward here. |
Follow on from #3682.
Re: #3682 (comment)
And remove text duplicating that inserted by the template.
Previews:
📚 Documentation preview 📚: https://pep-previews--3756.org.readthedocs.build/