What are the advantages and disadvantages of using BBCode or Markdown instead of HTML in PHP applications?

When working on PHP applications, using BBCode or Markdown instead of HTML can offer advantages such as easier readability, simplicity, and portability. However, it may also limit the flexibility and customization options that HTML provides.

// Example of using Markdown in PHP application
require_once 'vendor/autoload.php';
use Parsedown;

$markdown = new Parsedown();
echo $markdown->text('**Hello, World!**');