You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
Don't linkify code blocks (#7859)
* Don't linkify code blocks Signed-off-by: Robin Townsend <robin@robin.town> * Put the linkify ignoreTags option in the right place Signed-off-by: Robin Townsend <robin@robin.town> * Add code to list of ignored linkification tags as well Signed-off-by: Robin Townsend <robin@robin.town> * Test that code blocks skip linkification Signed-off-by: Robin Townsend <robin@robin.town> * Move test to the right spot Signed-off-by: Robin Townsend <robin@robin.town> * Use a snapshot instead for test Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
@@ -225,6 +225,8 @@ export const options = {
|
||||
rel: 'noreferrer noopener',
|
||||
},
|
||||
|
||||
ignoreTags: ['pre', 'code'],
|
||||
|
||||
className: 'linkified',
|
||||
|
||||
target: function(href: string, type: Type | string): string {
|
||||
|
Reference in New Issue
Block a user