Tags
I'm building in a [[ fragmentions ]] implementation into my blog, I wanted to add some text before the fragment to indidate that it was the highlighted fragment that someone may have intended to share with you.
To get a newline in a :before
I need to use \A
and white-space: pre-line
.
body :target::before,
body [fragmention]::before {
content: "Highlighted Fragment:\A";
white-space: pre-line;
@apply font-bold text-yellow-600;
}
Here is what it looks like on my not yet live implementation of fragmentions.