diff --git a/spec2md.py b/spec2md.py index ecf6ead2551ef3b4785b418a43fbf3436ce365b5..a1bcac8b8269ab4affee22722106f4cde4369b40 100644 --- a/spec2md.py +++ b/spec2md.py @@ -350,6 +350,7 @@ def processDocuments(documents:list[str], 'commentReference', 'smartTag', 'footnoteRef', + 'annotationRef', ) @@ -822,7 +823,7 @@ def processDocuments(documents:list[str], lines.append('') # Add an empty line before a table if errorDetected: - lines.append('<mark>The table below caused an error during conversion and may need extra attention</mark>') + lines.append('<mark>The table below caused an error during conversion (e.g. incorrect number of columns) and may need extra attention</mark>') lines.append('') # Add an empty line before a table lines.extend(tableLines) lines.append('') # Add another empty line after a table @@ -846,6 +847,9 @@ def processDocuments(documents:list[str], lines[i] = line else: _print(f'[yellow]({linenumber(i)}) Non-ASCII character (consider to add a replacement in the config.ini file): "{ch}" / {ord(ch)} / {hex(ord(ch))}') + line = line.replace(ch, f'<mark>Non-ASCII character {ch} / {hex(ord(ch))}</mark>') + lines[i] = line + #