DEV: Minor hashtag to-markdown fix (#19142)
Follow-up to 3846b6248f
,
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…
Reference in New Issue