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

References to hidden composite replacements are not hidden #246

Open
dqnykamp opened this issue Oct 19, 2024 · 0 comments
Open

References to hidden composite replacements are not hidden #246

dqnykamp opened this issue Oct 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dqnykamp
Copy link
Member

For many (if not most) composite components, references to their replacements are not hidden when the composite itself is not hidden. Presumably the references should also be hidden.

For example, in the below DoenetML, every reference to a hidden replacement is displayed.

<p>
  hidden originals:
  <group assignNames="a" hide><text>hi</text></group>
  <intersection assignNames="b" hide>
    <line>y=x</line><line>y=1-x</line>
  </intersection>
  <map assignNames="(c)" hide>
     <template><text>a</text></template><sources><number /></sources>
  </map>
  <samplePrimeNumbers assignNames="d" hide />
  <sampleRandomNumbers assignNames="e" hide />
  <select assignNames="f" hide>a b c</select>
  <selectFromSequence assignNames="g" hide />
  <selectPrimeNumbers assignNames="h" hide />
  <selectRandomNumbers assignNames="i" hide />
  <sequence assignnames="j" hide />
  <shuffle type="math" assignNames="k" hide>x y z</shuffle>
  <sort type="math" assignNames="l" hide>z y x</sort>
  <substitute match="x" replacement="y" assignNames="m" hide> x^2 </substitute>
</p>
<p>references are not hidden: $a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m</p>
@dqnykamp dqnykamp added the bug Something isn't working label Oct 19, 2024
@dqnykamp dqnykamp changed the title References of hidden composite replacements are not hidden References to hidden composite replacements are not hidden Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant