There is some way to make strong some words in the same code line using Jade to generate the HTML?
I try to use markdown code, like this. But isn't working:
p Here are my **strong words** in my sentence!
An unique solution that I found (here) was:
p Here are my <strong>strong words</strong> in my sentence!
There any other way?
Thank you!
Creating bold italic text is simply a matter of using both bold (two asterisks) and italic (one asterisk) at the same time, for a total of three asterisks on either side of the text you want to format at once. PDF - Download Markdown for free
You will need two asterisks without spaces around each letter in order to bold the middle of the word in a way emphasizing its meaning. **bold text** is just what I love. How Do You Create Bold Or Italic Text Using Markdown?
The original Markdown does not support markup inside code blocks. Nor do any other flavours of Markdown, to my knowledge. You could use inline HTML, if all your tools support it. Or you could highlight the code in some other way, e.g. surround it with comments.
The best way to produce a Markdown file is with an application dedicated to it such as a spreadsheet or flowchart. Use the Markdown application to open the Markdown file. The Markdown document can be made HTML using the Markdown application.
For Pug or Jade, you need to wrap the element in a paragraph, and use the |
for line continuation.
p
strong This Starts out strong
| but finishes out not
i quite
| as bold.
Which will look like:
This starts out strong but finishes out not quite as bold.
EDIT: As noted in the comments, you need an additional whitespace before each component, as pug doesn't add spaces. The above will render out as:
<p><strong>This Starts out strong </strong> but finishes out not <i> quite </i> as bold.</p>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With