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:
Martin Brennan 2022-11-22 13:55:23 +10:00 committed by GitHub
parent bc61629d0f
commit d7b7660061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,7 +315,7 @@ export class Tag {
return text; return text;
} }
if ("hashtag-cooked" === attr.class) { if (attr.class?.includes("hashtag-cooked")) {
if (attr["data-ref"]) { if (attr["data-ref"]) {
return `#${attr["data-ref"]}`; return `#${attr["data-ref"]}`;
} else { } else {