In short: Use <code> tag
In normal cases backticks work for highlighting text but are printed as literal characters when inside html lists.
A part of tensorflow tutorial written using markdown
Training the neural network model requires the following steps:
<ol>
<li>Feed the training data into the model. In this example, the training data is in the <code>train_images</code> and <code>train_labels</code> arrays.</li>
<li>The model learns to associate the images and labels.</li>
<li>You ask the model to make predictions about a test set -- in this example the test_images array.</li>
<li>Verify the predictions match the labels from the <code>test_labels</code> array.</li>
</ol>
Output
(As seen in jupyter notebook)
Training the neural network model requires the following steps:
- Feed the training data into the model. In this example, the training data is in the
train_images and train_labels arrays.
- The model learns to associate the images and labels.
- You ask the model to make predictions about a test set -- in this example the test_images array.
- Verify the predictions match the labels from the
test_labels array.
<code>—it would also work for Markdown.<code>tags which are a semantic way of representing source code. Stack Overflow happens to add a grey background to<code>, but that's incidental. If they chose to change the way they styles these tags tomorrow, they could. There is nothing inherent in backticks that suggests highlighting.