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
Branches
Tags
8 merge requests!40Merge BeaglePlay and latest BeagleConnect documentation,!39Add accessories section updates,!38Add BeagleBone Accessories section,!36Jason's lateast updates,!31Fix PDF font issue,!30rst-cheat-sheet updates and links and spelling fix from Jason,!29Add AI-64 connectors table & fix text,!27Fixes, contnet and release script
......@@ -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