feat: two pointers post
This commit is contained in:
parent
cb481c4fe3
commit
6c97fa2890
13 changed files with 268 additions and 10 deletions
|
|
@ -1,8 +1,13 @@
|
|||
const h2s = document.querySelectorAll("article h2");
|
||||
|
||||
h2s.forEach((h2) => {
|
||||
document.querySelectorAll("article h2").forEach((h2) => {
|
||||
const mdHeading = document.createElement("span");
|
||||
mdHeading.textContent = "# ";
|
||||
mdHeading.style.color = "#0073e6";
|
||||
h2.prepend(mdHeading);
|
||||
});
|
||||
|
||||
document.querySelectorAll("article h3").forEach((h3) => {
|
||||
const mdHeading = document.createElement("span");
|
||||
mdHeading.textContent = "## ";
|
||||
mdHeading.style.color = "#0073e6";
|
||||
h3.prepend(mdHeading);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue