The issue
For some reason my YML code loses indentation after being posted.
I tried disabling BBcode and Rich Text extensions, edit and save the message again but still it loses indentation.
To me seems a "render" issue since if you press on the edited button (provided by flarum-diff extension, which I also tried disabling without success) it somehow reverts the text back to the correct indented text, probably it's forcing some sort of re-generation of the post HTML.
Flarum information
Flarum core: 1.7.2
PHP version: 8.0.19
MySQL version: 10.5.18-MariaDB-1:10.5.18+maria~ubu2004
Loaded extensions: Core, date, libxml, pcre, zlib, filter, hash, json, readline, Reflection, SPL, session, ctype, curl, dom, fileinfo, gd, gmp, iconv, intl, mbstring, openssl, PDO, standard, tokenizer, xmlwriter, zip, exif, mysqlnd, Phar, pdo_mysql, apcu, Zend OPcache
+------------------------------------+------------+--------+
| Flarum Extensions | | |
+------------------------------------+------------+--------+
| ID | Version | Commit |
+------------------------------------+------------+--------+
| flarum-flags | v1.7.0 | |
| flarum-approval | v1.7.0 | |
| flarum-tags | v1.7.1 | |
| flarum-suspend | v1.7.0 | |
| flarum-subscriptions | v1.7.0 | |
| askvortsov-auto-moderator | v0.1.2 | |
| flarum-likes | v1.7.0 | |
| flarum-sticky | v1.7.0 | |
| flarum-lock | v1.7.0 | |
| afrux-forum-widgets-core | v0.1.7 | |
| fof-byobu | 1.2.0 | |
| fof-follow-tags | 1.1.7 | |
| antoinefr-money | v1.3.1 | |
| flarum-markdown | v1.7.0 | |
| tohsakarat-tags-filter | v1.0.3 | |
| the-turk-stickiest | 3.0.1 | |
| the-turk-flamoji | 1.0.4 | |
| the-turk-diff | 1.1.2 | |
| swaggymacro-only-starter | 0.6.6 | |
| serakoi-flarumstaffbadge | 1.2.1 | |
| ramesh-dada-bbcode-alerts | 6.21 | |
| nearata-tags-color-generator | v2.2.0 | |
| nearata-lang-italian | v1.1.0 | |
| nearata-internal-links-noreload | v2.1.3 | |
| nearata-embed-video | v3.2.1 | |
| nearata-copy-code-to-clipboard | v2.1.0 | |
| michaelbelgium-discussion-views | v7.2.1 | |
| lonedev-customer-verify | dev-main | |
| kilowhat-audit-free | 1.6.0 | |
| justoverclock-last-users-posts | 0.3.0 | |
| ianm-log-viewer | 0.1.1 | |
| fof-webhooks | 1.1.2 | |
| fof-upload | 1.2.3 | |
| fof-terms | 1.2.1 | |
| fof-spamblock | 1.1.0 | |
| fof-reactions | 1.1.5 | |
| fof-pages | 1.0.5 | |
| fof-oauth | 1.3.0 | |
| fof-moderator-notes | 1.2.0 | |
| fof-links | 1.1.4 | |
| fof-ignore-users | 1.2.0 | |
| fof-github-autolink | 1.0.0 | |
| fof-gamification | 1.6.2 | |
| fof-forum-statistics-widget | 1.1.0 | |
| fof-formatting | 1.0.3 | |
| fof-drafts | 1.2.2 | |
| fof-cookie-consent | 1.1.1 | |
| fof-best-answer | dev-main | |
| fof-analytics | 1.1.0 | |
| flarumite-simple-spoilers | 1.0.0 | |
| flarum-statistics | v1.7.0 | |
| flarum-pusher | v1.7.0 | |
| flarum-mentions | v1.7.0 | |
| flarum-lang-turkish | 1.16.0 | |
| flarum-lang-spanish | 1.6.0 | |
| flarum-lang-french | v4.11.0 | |
| flarum-lang-english | v1.7.0 | |
| flarum-lang-chinese-simplified | v1.3.0 | |
| flarum-emoji | v1.7.0 | |
| flarum-bbcode | v1.7.0 | |
| davwheat-custom-sidenav-links | 1.0.1 | |
| datitisev-discussion-agree-message | 1.0.2 | |
| clarkwinkelmann-post-bookmarks | 1.0.0 | |
| clarkwinkelmann-money-rewards | 1.0.0 | |
| clarkwinkelmann-likes-received | 1.0.2 | |
| clarkwinkelmann-collapsible-posts | 1.0.0 | |
| blomstra-mark-unread | 0.2.0 | |
| blomstra-database-queue | 0.1-beta.2 | |
| askvortsov-rich-text | v2.1.7 | |
| askvortsov-help-tags | v1.1.0 | |
+------------------------------------+------------+--------+
Base URL: https://forum.devs.beer
Installation path: /flarum/app
Queue driver: database
Session driver: file
Scheduler status: Never run
Mail driver: smtp
Debug mode: off