Open dbrianwalton opened 4 hours ago
I am pretty sure they are being dropped in the PTX processing. If you check the HTML file that is produced and examine the JSON blob that has the markup for the statement that RS is supposed to display, there is no sign of the elements.
@dbrianwalton An unrelated issue you might want to fix when you check on this:
When a fillin is in an exercise-like with a label, it appears the same html id is getting applied to the exercise and the <div data-component="fillintheblank"
This
<exercise label="programming_11">
<statement>
<p>Fill in the missing pieces:</p>
<p>
<c>#include <</c>
<fillin mode="string" case="insensitive" answer="iostream"/>
<c>></c>
...
Produces:
<article class="exercise exercise-like" id="programming_11"><h3 class="heading"><span class="codenumber">11<span class="period">.</span></span></h3>
<div class="ptx-runestone-container"><div class="runestone">
<div data-component="fillintheblank" class="fillintheblank" style="visibility: hidden;" id="programming_11">
...
I'm not sure if you want to use the runestone-id
template instead of the html-id
or not on line 50 of pretext-runestone-fitb.xsl
, but with either one, you probably need to decorate the retried id to make it unique when it is applied to the div.
Reports from Chrissy and Andrew state that some elements do not appear inside exercises that are created with the fillin structure.
Chrissy's report thread: https://groups.google.com/g/pretext-dev/c/-AfefZJx-I8/m/c-VNNATVAAAJ Andrew's report thread: https://groups.google.com/g/pretext-dev/c/wmvrpWwOABM/m/DpvBbkrjCAAJ
Chrissy reported issues with images sometimes not appearing:
and issues with links inside the fillin exercises:
Andrew reported additional issues:
I do plan to dig into this, and am not yet sure if this is an issue on the PreTeXt side — it could be due to working on XML stubs in the XSL processing — or on the Runestone side — the RS javascript HTML insertion process may have side effects.
Submitting this issue so that it is formally tracked.