One of PHP's most important features is its ability to autoload classes, and with that comes the Dependency Injection Containers. Let's see how a DI Container works.
I write all my posts in markdown. I love it, and since I use TailwindCSS and I don't want to add classes to all the h1
, h2
, p
and so, I use it's Typography Plugin, which adds some styles for me.
In addition to headers, paragraphs, emphasis, and all the writing stuff, already covered in markdown and the typography plugin, some times we need additional structures in our posts. For example, what if we want to add code? Well, that is already well covered with the code syntax, with the plugin that adds syntax highlighting, but when it comes to something else, well, we have at least two options: