diff --git a/_ext/callouts.py b/_ext/callouts.py index 97bb23e4ee77d126cdac16d2e228987c6e31aa8a..8ed544aec52856f305cb501d9bfb2a2006ebb9d5 100644 --- a/_ext/callouts.py +++ b/_ext/callouts.py @@ -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)] diff --git a/intro/contribution/rst-cheat-sheet.rst b/intro/contribution/rst-cheat-sheet.rst index e392b49eb3f32d573762c42fc5d027700332d72e..db3626dac75aebc243d43e7f1353d7f388951037 100644 --- a/intro/contribution/rst-cheat-sheet.rst +++ b/intro/contribution/rst-cheat-sheet.rst @@ -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 ``#``.