DEV Community

loading...

Discussion on: Should you use Medium or dev.to?

Collapse
alexisbenamar profile image
Alexis Benamar

Great article, it's nice to always have a choice.

But, I don't agree with your last statement about ugly code, as markdown offers syntax highlighting as a built-in feature. You just need to add the language you used in your code snippet next to the first triple backticks at the top. (You can find the right name for your language on numerous markdown help pages)

For example:

```javascript
const hello = (name) => {
    console.log(`hello, ${name}`)
}
```

will render as:

const sayHello = (name) => {
    console.log(`hello, ${name}`)
}

PS: there are many bullet points where the bold text isn't properly rendered because the closing ** sticks to a word, you might want to check it out 👍

Collapse
mzaini30 profile image
Zen

Markdown is amazing. I like this.

Collapse
davidmm1707 profile image
David MM🐍 Author

I didn't know. I'm going to update the OP.