You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/markup
silverwind 2447ffc74a
Disable all typographic replacements in markdown renderer (#11871)
* Disable all typographic replacements in markdown renderer

Previously we only disabled some of them. This disables all the default
replacements that goldmark's typographer extension offers, matching
GitHub's renderer.

Ref: https://github.com/yuin/goldmark#typographer-extension
Fixes: https://github.com/go-gitea/gitea/issues/11001

* remove typographer extension completely

* fix test

* really fix test

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
..
common Fix potential bugs (#10513) 4 years ago
csv Detect delimiter in CSV rendering (#7869) 5 years ago
external Better logging (#6038) (#6095) 5 years ago
markdown Disable all typographic replacements in markdown renderer (#11871) 4 years ago
mdstripper Change markdown rendering from blackfriday to goldmark (#9533) 5 years ago
orgmode Update go-org to optimize code (#8824) 5 years ago
html.go Update emoji regex (#11584) 4 years ago
html_internal_test.go Issue/PR Context Popups (#9822) 5 years ago
html_test.go Disable all typographic replacements in markdown renderer (#11871) 4 years ago
markup.go Don't manually replace whitespace during render (#10291) 4 years ago
markup_test.go Prioritize "readme.md" (#5691) 6 years ago
sanitizer.go Prevent 500 with badly formed task list (#11328) 4 years ago
sanitizer_test.go Restore checkbox rendering and prevent poor sanitization of spans (#11277) 4 years ago