Motivation
Found myself looking this up for a few minutes in order to make the second “file” in file=file
italic. Simply wrapping the word with single asterisk does not work. Nor does escaping the asterisks (Yes, I tried stupid stuff). A nearly perfect method of solving it is:
1 | `file=`*`file`* |
but it resulted in the inline code being separated:file=
file
The solution
- Usage of HTML:
<code> </code>
To getfile=file
,1
<code>file=*file*</code>
Alternative method (full HTML)
To obtain the same result:
1 | <code> file=<i>file</i> </code> |