add link-creation for RFCs
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 11 Apr 2023 16:18:34 +0000 (17:18 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 11 Apr 2023 16:18:34 +0000 (17:18 +0100)
openpower/pandoc_img.py

index d60fac53343607d0d568829b6cfca6190d02da96..f665d5dab19efa21ac707657dbab4eb74089ec47 100755 (executable)
@@ -102,6 +102,11 @@ def inlinenotes(k, v, f, meta):
                    'openpower/isa/branch': 'Branch pseudocode',
                    'openpower/transcendentals': 'Transcendentals',
                    }
+        if link.startswith("ls") and link[2].isdigit():
+            out.write("     found RFC %s\n" % link)
+            return [Link(['', [], []],
+                         [Str("{RFC "+link+"}")],
+                         ['#%s' % link, '']), Str(v[find_brack+2:])]
         if link in lookups:
             out.write("     found %s\n" % lookups[link])
             return [Link(['', [], []],