RunestoneInteractive / RunestoneInteractive/rs

Runestone Issue: MathJax parsing in assignment builder preview

Open
#1,517 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
69
Forks
117
Avg merge
6d 4h
Merged PRs (30d)
24

Description

What Page were you on
https://runestone.academy/assignment/instructor/builder/291467/exercises

Describe the bug
In the assignment builder, it appears that previewing an exercise reads $ as mathjax delimiters, where this particular exercise uses them for money twice, which happens to close them. It works fine in the book itself, this issue only presents in the preview.

A Screenshot is worth a thousand words
Image

Javascript Errors
No javascript errors, but here is the output for completeness:

before get hist bookfuncs.js:78:23
res
Object { _component_ready_resolve_fn: (), component_ready_promise: Promise { "fulfilled" }, optional: false, sid: undefined, graderactive: false, showfeedback: true, assessmentTaken: true, timedWrapper: null, is_toggle: undefined, is_select: undefined, … }
bookfuncs.js:78:23
making a new scrubber bookfuncs.js:78:23
Fake change event, skipping the log bookfuncs.js:78:23

What is your username
hicksa@wfu.edu

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the assignment builder preview at the provided page with an exercise containing dollar signs, then trace how preview content is rendered compared with the book view. Confirm the fix by ensuring literal currency remains literal in the preview while mathematical delimiters continue to render correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.