Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 12b7be84 authored by Jason Kridner's avatar Jason Kridner
Browse files

Try inline literal hack to avoid italic font on callouts

parent c0bb74c4
No related merge requests found
Pipeline #914 passed with stage
in 5 minutes and 46 seconds
......@@ -47,7 +47,7 @@ class LiteralIncludeVisitor(nodes.NodeVisitor):
source = str(node.rawsource)
for i in range(1, 20):
source = source.replace(
f"<{i}>", chr(int(f"0x{BASE_NUM + i}", base=16))
f"<{i}>", "``" + chr(int(f"0x{BASE_NUM + i}", base=16)) + "``"
)
node.rawsource = source
node[:] = [nodes.Text(source)]
......
......@@ -29,14 +29,15 @@ more) the lenth of the heading text, for example:
.. code-block:: ReStructuredText
incorrect H1
##### # <1>
##### <1>
correct H1
############ # <2>
############ <2>
.. annotations::
* <1> length of heading sybol ``#`` is smaller than the content above.
* <2> Shows the correct way of setting the document title (H1) with ``#``.
<1> Length of heading sybol ``#`` is smaller than the content above.
<2> Shows the correct way of setting the document title (H1) with ``#``.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment