feat(post): un-italicize post md headings

This commit is contained in:
Barrett Ruth 2024-07-31 07:54:08 -05:00
parent 102c71e87a
commit ca4b773f35
3 changed files with 67 additions and 1 deletions

View file

@ -39,6 +39,7 @@ document.addEventListener("DOMContentLoaded", () => {
document.querySelectorAll("article h2").forEach((h2) => {
const mdHeading = document.createElement("span");
mdHeading.textContent = "# ";
mdHeading.style.fontStyle = "normal";
mdHeading.style.color = getTopicColor(urlToTopic());
h2.prepend(mdHeading);
});