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

@ -18,7 +18,11 @@ const postMapping = new Map([
["Trading", [{ name: "InteractiveBrokers TWS" }, { name: "valuation" }]],
[
"Algorithms",
[{ name: "two pointers", link: "two-pointers" }, { name: "convex hull" }],
[
{ name: "extrema circular buffer", link: "extrema-circular-buffer" },
{ name: "two pointers", link: "two-pointers" },
{ name: "convex hull" },
],
],
]);

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);
});