Ticket UUID: | ab0fdf9aead96e7a58d2c7330274a7250e2f8764 | |||
Title: | Markdown package handles \r incorrectly | |||
Type: | Bug | Version: | ||
Submitter: | anonymous | Created on: | 2020-02-11 16:01:15 | |
Subsystem: | markdown | Assigned To: | hypnotoad | |
Priority: | 5 Medium | Severity: | Important | |
Status: | Closed | Last Modified: | 2020-02-18 19:36:50 | |
Resolution: | Fixed | Closed By: | aku | |
Closed on: | 2020-02-18 19:36:50 | |||
Description: |
The command regsub {\r\n?} $markdown {\n} in proc [convert] replaces the first CR/CR+LF in the Markdown text with the literal string {\n}. This cannot be the intended behavior. It would make sense for it instead to replace every occurrence of CR/CR+LF with \n. Here is how this bug was fixed in Tclssg, which also includes a fork of the Caius Markdown package: https://github.com/tclssg/tclssg/commit/c1ab12a496312ca4c1f06219873b7f266ff5c10d | |||
User Comments: |
hypnotoad added on 2020-02-17 14:34:47:
I have applied the fix to checkin [a4c2f4227c] |