feat(post): un-italicize post md headings
This commit is contained in:
parent
102c71e87a
commit
ca4b773f35
3 changed files with 67 additions and 1 deletions
|
|
@ -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" },
|
||||
],
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue