Skip to content

Disable all typographic replacements in markdown renderer#11871

Merged
techknowlogick merged 6 commits into
go-gitea:masterfrom
silverwind:typography
Jun 13, 2020
Merged

Disable all typographic replacements in markdown renderer#11871
techknowlogick merged 6 commits into
go-gitea:masterfrom
silverwind:typography

Conversation

@silverwind
Copy link
Copy Markdown
Member

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: #11001

Before:
image

After:
image

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: go-gitea#11001
@techknowlogick techknowlogick added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Jun 12, 2020
@techknowlogick techknowlogick added this to the 1.13.0 milestone Jun 12, 2020
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jun 12, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 12, 2020
@techknowlogick
Copy link
Copy Markdown
Member

ping LG-TM

@techknowlogick techknowlogick merged commit 2447ffc into go-gitea:master Jun 13, 2020
@silverwind silverwind deleted the typography branch June 13, 2020 15:31
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
…1871)

* 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: go-gitea#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>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't transform quotes in Markdown

5 participants