Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bold Text Within Multi-Line Code In MarkDown (.md) File?

Tags:

markdown

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.

like image 618
Dhruv_2676 Avatar asked May 29 '26 23:05

Dhruv_2676


1 Answers

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:
  # ...
like image 86
Andrew Avatar answered Jun 01 '26 20:06

Andrew