mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 14:44:26 +08:00
DEV: Minor hashtag to-markdown fix (#19142)
Follow-up to 3846b6248f6ee8dac63db11da286939b6c0207cc, check if class contains hashtag-cooked rather than it being the only class.
This commit is contained in:
parent
bc61629d0f
commit
d7b7660061
@ -315,7 +315,7 @@ export class Tag {
|
||||
return text;
|
||||
}
|
||||
|
||||
if ("hashtag-cooked" === attr.class) {
|
||||
if (attr.class?.includes("hashtag-cooked")) {
|
||||
if (attr["data-ref"]) {
|
||||
return `#${attr["data-ref"]}`;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user