Better way to indent ordered lists in Markdown
Published on in Markdown
1. foo
is annoying because the list item's text is indented with three spaces.
Solution: add another space after the period.
I'm a web developer from Finland.
I do full-stack web development, and lean slightly towards the front-end as I like to make things look and feel nice.
In my current consulting gig, I'm using TypeScript, React, Node.js and Azure.
I like blogging and some non-techy things too:
Contact me at hello (at) this domain and find me on GitHub and Stack Overflow.
Published on in Markdown
1. foo
is annoying because the list item's text is indented with three spaces.
Solution: add another space after the period.
Published on in Bookmarklets and JavaScript
There's no built-in way to preview HTML files on GitHub, but you can use this nifty bookmarklet. (GitHub's project managers HATE it!)
Content-Type: "application/json"
Published on in JavaScript, Node.js and TypeScript
If you are sending a FormData
body with fetch
,
things might not work correctly if you are (accidentally)
setting the Content-Type
request header to "application/json"
.
error.stack
includes the error message in some JS environmentsPublished on in JavaScript
Last updated on
In V8-based JS environments (e.g. Chrome, Deno and Node.js) and in Bun,
error.stack
= error class name + error.message
+ stack frames.
yarn install
failing mysteriously on Node.js v18.18Published on in JavaScript
Last updated on
TL;DR: Upgrading Yarn from v1 to v4 fixed it for me.
Published on in JavaScript
Last updated on
That's because it would take a very long time, and at some point you would have so many permutations that they wouldn't fit in an array.
Table updated once a day.