-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
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>