Underline Heading

H1, H2์™€ ๊ฐ™์€ Heading ์•„๋ž˜์— ๊ตฌ๋ถ„์„ ์„ ์ž๋™์œผ๋กœ ์ƒ์„ฑํ•ด ๋ณด์ž

Obsidian์— ์ ์šฉํ•œ Underline Heading์„ ๋™์ผํ•˜๊ฒŒ Quartz์— ์ ์šฉํ•˜๋ ค๊ณ  ํ•˜๋‹ˆ, ์ ์šฉ์ด ๋˜์ง€ ์•Š๋Š”๋‹ค. CSS ์„ ํƒ์ž๊ฐ€ ๋‹ค๋ฅด๊ฒŒ ์ž‘๋™ํ•˜๋Š” ๋“ฏ ํ•ด์„œ, ์ •์ƒ์ ์œผ๋กœ ์ ์šฉ๋˜๋Š” StyleSheets๋ฅผ ์ฐพ์•„ ๊ณต์œ ํ•œ๋‹ค.

์ ์šฉ ๋ฐฉ๋ฒ•

quartz/styles/custom.scss ์— ๋‹ค์Œ๊ณผ ๊ฐ™์€StyleSheets๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ์ ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

StyleSheets

/* quartz/styles/custom.scss */
 
.page article h1::after,
.page article h2::after {
	display: block;
	content: "";
	padding-bottom: 0.5em;
	border-bottom: 2px solid var(--lightgray);
	margin-bottom: 0.5em;
}

๊ด€๋ จ ๊ธ€