Open Arpita-Jaiswal opened 3 weeks ago
The ~~text~~ syntax in fastn should apply the text-decoration: line-through CSS to the text.
~~text~~
text-decoration: line-through
However, it is not working as expected because the global CSS rule:
*, :after, :before { text-decoration: none; ... }
is overriding the specific rule for the <del> element:
<del>
del { text-decoration: line-through; }
-- ftd.text: This ~~sentence is grammatically wrong~~, correct it.
Text wrapped in the ~~ markdown syntax should be displayed with a line-through effect.
~~
line-through
This sentence is grammatically wrong, correct it.
To ensure that the del element's text-decoration: line-through is applied, we need to add !important to the rule:
!important
del { text-decoration: line-through !important; }
Reported by Sneha Upadhyay on discord.
PR: https://github.com/fastn-stack/fastn/pull/1959
The
~~text~~
syntax in fastn should apply thetext-decoration: line-through
CSS to the text.However, it is not working as expected because the global CSS rule:
is overriding the specific rule for the
<del>
element:Steps to Reproduce:
Expected Behavior:
Text wrapped in the
~~
markdown syntax should be displayed with aline-through
effect.Example:
Expected output:
This
sentence is grammatically wrong, correct it.Suggested Fix:
To ensure that the del element's
text-decoration: line-through
is applied, we need to add!important
to the rule:Environment:
Reported by Sneha Upadhyay on discord.