Skip to content

Commit

Permalink
fix: markdown line continuation in release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed May 8, 2024
1 parent 55abf4c commit adac345
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ private bool HasRegistryEntry(string key)
releaseNotes = reader.ReadToEnd();
}

releaseNotes = Regex.Replace(releaseNotes, "\\\\\r", "\r"); // yes, this the right number of slashes...
releaseNotes = Regex.Replace(releaseNotes, "\n", "\n\n");
releaseNotes = Regex.Replace(releaseNotes, "#(\\d+)",
"[#$1](https://github.com/HearthSim/Hearthstone-Deck-Tracker/issues/$1)");
Expand Down

0 comments on commit adac345

Please sign in to comment.