Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cline area text fix #2260

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/sample-book/rune.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3038,6 +3038,8 @@ along with MathBook XML. If not, see <http://www.gnu.org/licenses/>.
<cline> <area>y = i</area></cline>
<cline> <area correct="no">if y > 2:</area></cline>
<cline> print(y)</cline>
<cline> # pointless lines to test that quotes in clickable</cline>
<cline> # are not transformed <area correct="no">"don't" click me</area></cline>
</areas>

<feedback>
Expand Down
4 changes: 3 additions & 1 deletion xsl/pretext-runestone.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,9 @@ along with PreTeXt. If not, see <http://www.gnu.org/licenses/>.
</xsl:template>

<!-- Avoid falling into low-level manipulations to remain verbatim -->
<xsl:template match="areas/cline/text()" mode="clickable-html">
<!-- non-modal so as to match after area template below triggers -->
<!-- apply-templates -->
<xsl:template match="areas/cline//text()">
<xsl:value-of select="."/>
</xsl:template>

Expand Down