https://parsoid-vs-core.wmflabs.org/diff/trwikivoyage/%C5%9Eablon%3APandemiDikkat
The legacy parser outputs,
<div class="mw-heading mw-heading2"><h2 id="COVID-19_pandemisi"><a href="/wiki/COVID-19_pandemisi" title="COVID-19 pandemisi">COVID-19 pandemisi</a></h2></div>
where the wikitext expands to,
<div class="mainpage-shadowbox banner-box-2 banner-box-right" style="width:40%"> <h2>[[COVID-19 pandemisi|COVID-19 pandemisi]]</h2>
After https://github.com/wikimedia/mediawiki/commit/b3ac045497be0ad74e2c0335783ebe12c80fa176, it would seem that we'd always be wrapping similarly but we have an early exit,
$fromTitle = $section->fromTitle; if ( $fromTitle === null ) { // T353489: don't wrap bare <h> tags continue; }