see all options in https://
as well as https://
in particular there is a hidden
attribute that may come in handy but I have not explored in depth yet
native MyST exercise¶
here’s a sample
the code for this output
````{exercise} the header
:label: exo-label
the question; the dropdown class works too if needed
```{code-block}
# of course one can insert code in the body
class Foo:
pass
```
native MyST solution¶
here’s a sample solution for the above exercise
Solution to Exercise 1 #
the solution
one can use ```{code-block} to insert code
def fact(n):
pass
the code for this output
````{solution} exo-label
:class: dropdown
:label: sol-label
the solution
```{code-block} python
one can use ```{code-block} to insert code
def fact(n):
pass
```
````
without this feature¶
before that we have used an admonition with a seealso
class
I don’t have a very stable way to present solutions, here’s one suboptimal way to do it with a
:class: dropdown warning
directive
solution
the solution