Underline Heading
H1, H2μ κ°μ Heading μλμ ꡬλΆμ μ μλμΌλ‘ μμ±ν΄ 보μ
νμλ H1, H2 μ κ°μ Heading μλμ ꡬλΆμ μ΄ μλκ² κΉλνλ€κ³ μκ°νλ€.
Obsidianμμλ μλμΌλ‘ ꡬλΆμ μ μμ±ν΄ μ£Όμ§ μμ μλμΌλ‘ --- λ₯Ό ν΅ν΄ ꡬλΆμ μ μμ±ν΄μ μ¬μ©μ€μ΄μλ€. μ΄λ¬λ©΄ μ¬μν λ¬Έμ κ° λ°μνλλ°, GitHub λ± Heading μλμ μλμΌλ‘ ꡬλΆμ μ μμ±ν΄ μ£Όλ λ€λ₯Έ Markdown λ·°μ΄λ₯Ό ν΅ν΄ λ¬Έμλ₯Ό λ³Ό κ²½μ°, μλμΌλ‘ μμ±λλ ꡬλΆμ κ΄΄ ---λ₯Ό ν΅ν΄ μλμΌλ‘ λ§λ ꡬλΆμ μ΄ μ΄μ€μΌλ‘ νμλλ λ¬Έμ κ° μλ€.
μ΄ λ¬Έμ λ κ°λ¨ν CSS Snippets μ μ©μ ν΅ν΄ ν΄κ²°ν μ μλ€.
StyleSheets
/* .obsidian/snippets/UnderlineHeading.css */
.HyperMD-header-1::after, h1,
.HyperMD-header-2::after, h2 {
display: block;
content: "";
padding-bottom: 0.5em;
border-bottom: 2px solid var(--background-modifier-border);
margin-bottom: 0.5em;
}ν΄λΉ CSSλ₯Ό μ μ₯νκ³ , μ€μ μ CSS Snippetsμμ νμ±νν΄ μ£Όλ©΄ λμ΄λ€.
References
κ΄λ ¨ κΈ