Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve & linting #15

Open
giovannidisiena opened this issue Apr 14, 2024 · 0 comments
Open

Improve & linting #15

giovannidisiena opened this issue Apr 14, 2024 · 0 comments

Comments

@giovannidisiena
Copy link

giovannidisiena commented Apr 14, 2024

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 line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant