[mention]duome[/mention] here's a fix for the bug reported by [mention]Basler Biker[/mention] in the Update [align] thread (continuing discussion here as it concerns [table]
, not [align]
):
Basler Biker wrote: ↑Tue Mar 22, 2022 8:46 am
while we are on alignment - note that the initial "pipe" based markdown notations don't align anymore
(with or even without the very first and very last "pipe"
To fix, replace the BBCodes for td
and th
as follows:
td
Code: Select all
[td align={CHOICE=left,center,right,justify;caseSensitive;optional;preFilter=strtolower} colspan={UINT?} rowspan={UINT?} #createParagraphs=false]{TEXT}[/td]
Code: Select all
<td>
<xsl:copy-of select="@colspan"/>
<xsl:copy-of select="@rowspan"/>
<xsl:if test="@align">
<xsl:attribute name="style">text-align:{CHOICE}</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</td>
th
Code: Select all
[th align={CHOICE=left,center,right,justify;caseSensitive;optional;preFilter=strtolower} colspan={UINT?} rowspan={UINT?} #createParagraphs=false]{TEXT}[/th]
Code: Select all
<th>
<xsl:copy-of select="@colspan"/>
<xsl:copy-of select="@rowspan"/>
<xsl:if test="@align">
<xsl:attribute name="style">text-align:{CHOICE}</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</th>
These are the BBCodes used in /vendor/s9e/text-formatter/src/Plugins/BBCodes/Configurator/repository.xml
and appear to be what pipe tables were originally using "under the hood", but they still allow for setting of colspan
and rowspan
.