'Bold Text Within Multi-Line Code In MarkDown (.md) File?
I have some code that I want to make bold in README.md
file. The code is very important and want everyone who reads the README to read it without fail and look good too, by being in a box, at the same time with bold text as well.
But when I try this, only one thing is possible — either multi-line bold or multi-line code. I want it like this:
```
**....**
```
Please help me out with this.
Solution 1:[1]
This is not possible with any flavors of markdown to my knowledge either, however you can use inline markdown like this
**`Some text`**
, which will render as Some text
instead of
Some text
However, this is probably not what you want. If you want to get someone's attention in the multi-line code block, perhaps just write a comment block above it like this:
# ------
# NOTICE: ...
# ------
if 1:
# ...
Solution 2:[2]
You can do this: **Some text**
When you do this Some text will be in bold.
This will make the text bold.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | M.H. Tajaddini |
Solution 2 | Semicolon |