Skip to content

My .mdx page doesn't appear in the menu #9

Answered by enyo
enyo asked this question in Q&A
Discussion options

You must be logged in to vote

That's most likely due to the markdown being parsed properly.

A common issue is, that the code fence is in the wrong place, which in many cases is due to HTML surrounding the fence.

So change this:

<div class="toit">
```

foo param/int: // The parameter 'param' must be of type int.
// The variable 'my_var' is typed as 'float'. The second
// '/' is a division.
my_var /float := param / 3.14
glob / string := "the global 'glob' is typed as string"

```
</div>

to this:

```
foo param/int: // The parameter 'param' must be of type int.
// The variable 'my_var' is typed as 'float'. The second
// '/' is a division.
my_var /float := param / 3.14
glob / string := "the global 'glob' is typed as strin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by enyo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant