I'm quoting something that has a centered line of text in the source formatting (pg. 175 of the D&D 5e PHB). I initially used the MathJax display style environment $$ like so:
Here’s how to determine a character’s total for a passive check:
$$10 + \text{all modifiers that normally apply to the check}$$
If the character has advantage on the check, add 5. For disadvantage, subtract 5.
>Here’s how to determine a character’s total for a passive check:
>
>$$10 + \text{all modifiers that normally apply to the check}$$
>
>If the character has advantage on the check, add 5. For disadvantage, subtract 5.
However, we generally prefer to avoid MathJax unless it is necessary (like the post contains math) since not all devices support it. So instead I've used the
character to approximately center the line:
Here’s how to determine a character’s total for a passive check:
10 + all modifiers that normally apply to the check
If the character has advantage on the check, add 5. For disadvantage, subtract 5.
>Here’s how to determine a character’s total for a passive check:
>
> 10 + all modifiers that normally apply to the check
>
>If the character has advantage on the check, add 5. For disadvantage, subtract 5.
So while the markdown looks ridiculous, the output nicely matches the source formatting without using MathJax. Is this a better solution than using MathJax to center the line? Are there any accessibility related reasons I should avoid doing this as well?