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:
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
1 changed files with 1 additions and 1 deletions

View File

@ -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 {