mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
regex for finding :ref: labels was flawed
The regex to find labels inside of angle brackets was not detecting anything before so I missed all of those. * Fixed the regex in find-plugin-refs to take care of that. * Fixed plugin_formatter to emit namespaced labels for the M() macro.
This commit is contained in:
parent
a833281e22
commit
f9d83944ec
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ def rst_ify(text):
|
|||
try:
|
||||
t = _ITALIC.sub(r"*\1*", text)
|
||||
t = _BOLD.sub(r"**\1**", t)
|
||||
t = _MODULE.sub(r":ref:`\1 <\1>`", t)
|
||||
t = _MODULE.sub(r":ref:`\1 <\1_module>`", t)
|
||||
t = _LINK.sub(r"`\1 <\2>`_", t)
|
||||
t = _URL.sub(r"\1", t)
|
||||
t = _CONST.sub(r"`\1`", t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue