8000 Runestone: remove multiple choice exercise statement from ul by ascholerChemeketa · Pull Request #2506 · PreTeXtBook/pretext · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Runestone: remove multiple choice exercise statement from ul #2506

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ascholerChemeketa
Copy link
Contributor
@ascholerChemeketa ascholerChemeketa commented May 13, 2025

As wondered at in the existing comment, multiplechoice questions are generating invalid HTML by placing the statement inside the <ul>. The list should only have <li> elements:
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ul#technical_summary

I noticed because an attempt to put a mermaid diagram in an exercise did not work correctly.

This moves the statement outside of the <ul> and wraps it in a div. The exercise-statement and exercise-interactives classes can hopefully be slowly added to RS components - currently each component has a 8000 largely unique set of styling rules.

This does result in the Choose one text being too close to the question. Addressing that in a RS PR to also fix dark mode font color for that text.

@ascholerChemeketa
Copy link
Contributor Author

RS PR: RunestoneInteractive/rs#715

No real timing issues, but if RS goes first there should be no period of time with no spacing above the legend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0