Skip to content

Should we implement a new tokenizer? #29

@caryknoop

Description

@caryknoop

To reproduce:

from redlines import Redlines

def main():
    text1 = f"This is a sentence\n\nexamples"
    text2 = f"This is a sentence"

    redlined = Redlines(text1, text2)
    result = redlined.output_markdown
    result = result.replace('¶','<br><br>')
    with open('text.html', 'w', encoding='utf-8') as file:
        file.write(result)


if __name__ == '__main__':
    main()

Result:

This is a sentence

examplessentence

This is a <span style='color:red;font-weight:700;text-decoration:line-through;'>sentence <br><br> examples</span><span style='color:green;font-weight:700;'>sentence</span>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions