Skip to content

Commit

Permalink
HTML: optional attribute to rotate (some) images
Browse files Browse the repository at this point in the history
  • Loading branch information
whaynes authored and rbeezer committed Aug 7, 2023
1 parent 0e1d2ae commit bdda422
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xsl/pretext-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -6519,6 +6519,13 @@ along with MathBook XML. If not, see <http://www.gnu.org/licenses/>.
</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:if test="@rotate">
<xsl:attribute name="style">
<xsl:text>transform: rotate(</xsl:text>
<xsl:value-of select="@rotate"/>
<xsl:text>deg)</xsl:text>
</xsl:attribute>
</xsl:if>
</img>
<!-- possibly annotate with archive links -->
<xsl:apply-templates select="." mode="archive">
Expand Down

0 comments on commit bdda422

Please sign in to comment.