Skip to content

Commit

Permalink
Merge pull request #5529 from lldelisle/cyoa_space
Browse files Browse the repository at this point in the history
update training for CYOA if space in option
  • Loading branch information
hexylena authored Nov 12, 2024
2 parents 522b065 + 128345a commit b850c27
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1189,20 +1189,20 @@ Include this markdown where you want your user to choose between the multiple pa
> <code-in-title>Markdown</code-in-title>
> {% raw %}
> ```
> {% include _includes/cyoa-choices.html option1="Ananas" option2="Avocados" default="Avocados"
> {% include _includes/cyoa-choices.html option1="Ananas of course" option2="Avocados" default="Avocados"
> text="Here is why some people choose Ananas. Other times you want Avocados as they fit the menu better." %}{% endraw %}
> ```
{: .code-in}
{% include _includes/cyoa-choices.html option1="Ananas" option2="Avocados" default="Avocados" text="Here is why some people choose Ananas. Other times you want Avocados as they fit the menu better." %}
{% include _includes/cyoa-choices.html option1="Ananas of course" option2="Avocados" default="Avocados" text="Here is why some people choose Ananas. Other times you want Avocados as they fit the menu better." %}
And then they can wrap the relevant sections with a `div` block with the relevant class. You **must** set `markdown="1"` as well to have the inner contents rendered corretly.
And then they can wrap the relevant sections with a `div` block with the relevant class (if you have space in your option, use `-` in the class). You **must** set `markdown="1"` as well to have the inner contents rendered corretly.
**NB**: If you do not set a default, then on the very first page load, both options will be shown in their entirety. As soon as the user selects one of the options by clicking the relevant button, then the list is filtered. The user's browser generally will remember which button was selected across navigation and page reloads.
> > <code-in-title>Markdown</code-in-title>
> > ```
> > <div class="Ananas" markdown="1">
> > <div class="Ananas-of-course" markdown="1">
> > - 🍍 are fantastic
> > - hands on!
> > - questions!
Expand All @@ -1220,7 +1220,7 @@ And then they can wrap the relevant sections with a `div` block with the relevan
>
> > <code-out-title></code-out-title>
> >
> > <div class="Ananas" markdown="1">
> > <div class="Ananas-of-course" markdown="1">
> > - 🍍 are fantastic
> > - hands on!
> > - questions!
Expand All @@ -1236,7 +1236,7 @@ And then they can wrap the relevant sections with a `div` block with the relevan
> {: .code-out}
{: .code-2col}
This can also be used inline: My favourite fruit is an <span class="Ananas">🍍</span><span class="Avocados">πŸ₯‘</span>.
This can also be used inline: My favourite fruit is an <span class="Ananas-of-course">🍍</span><span class="Avocados">πŸ₯‘</span>.
> <tip-title>Multiple, Disconnected CYOAs</tip-title>
> If you wish to have multiple CYOAs in a single tutorial, you are free to do that! However you must:
Expand Down

0 comments on commit b850c27

Please sign in to comment.