mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Replace markdown-it replacements rule. (#12417)
We override the default replacements rule to no longer replace "(c)", "(p)", and "(p)". Additionally, we merged the custom arrows rule into the replacement function.
This commit is contained in:
@@ -1442,10 +1442,10 @@ HTML
|
||||
|
||||
it 'supports typographer' do
|
||||
SiteSetting.enable_markdown_typographer = true
|
||||
expect(PrettyText.cook('(tm)')).to eq('<p>™</p>')
|
||||
expect(PrettyText.cook('->')).to eq('<p> → </p>')
|
||||
|
||||
SiteSetting.enable_markdown_typographer = false
|
||||
expect(PrettyText.cook('(tm)')).to eq('<p>(tm)</p>')
|
||||
expect(PrettyText.cook('->')).to eq('<p>-></p>')
|
||||
end
|
||||
|
||||
it 'uses quotation marks from site settings' do
|
||||
|
||||
Reference in New Issue
Block a user