Skip to content

Django precise_bbcode not properly parsing contents of [code] tags? #21

@guiglass

Description

@guiglass

If I provide the input:
[code] for i in var: print(var[i]) [/code]

precise-bbcode does not actually format that line as code (and it remains as plain text).
This has been the case for over a year.

So after digging through the source I have found a few lines that after changing got things working correctly.

I have provided a fix for this issue here.

But I am unsure if this is the proper way to solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions