forked from spearbit-audits/report-generator-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Currently, the linter replaces & with literal and; however, there are some cases where it may be preferable to continue using the symbol (e.g. && within an inline code block).
We should investigate whether the ampersand can be escaped within the logic below without affecting the LaTeX generation.
def replace_ampersand_in_findings_headings(line):
# If the line is a finding markdown heading and contains '&', replace '&' with 'and'
if line.strip().startswith('###') and '&' in line:
line = line.replace('&', 'and')
return lineMetadata
Metadata
Assignees
Labels
No labels