How to align text right in table column using Tailwind Typography and Markdown parser? #15863
Replies: 2 comments 4 replies
-
Here is a screenshot of how that looks like: ![]() Might be related to this commit: Based on this issue: |
Beta Was this translation helpful? Give feedback.
-
The solution I came up for now is to customize Nuxt Content. I created a component called <template>
<td>
<slot />
</td>
</template>
<style scoped>
td[align='right'] {
text-align: right;
}
</style> I have tested a different markdown to HTML parser and it also used There are three workarounds for the issue now. |
Beta Was this translation helpful? Give feedback.
-
I have this markdown :
The colon character (:) will align text in the Share column right. I use Nuxt Content to render HTML. It looks like this:
But in the browser it's aligned left. That is, as far as I see, because of this rule:
I assume it's related to Tailwind Typography.
Now, if so, what's the best way to deal with this?
Beta Was this translation helpful? Give feedback.
All reactions