Upgrade from Kirby 2 to 3 needs content upgrade by a `kirbytags:before` hook

Running on Kirby 2.5.12 the following content file

Title: Test

----

Text: 

(image: image3heads.jpg)
## Headline
Some text.

is running very well within a template file with the code <?= $page->text()->kirbytext() ?>.

After upgrading to Kirby 3.3.2 the rendered page looks very funny:
k3.3.2_error

I had found, that there must be an empty line after the image tag in front of the following content file line.

So I ask for some code I can add e.g. in a kirbytags:before hook (may be some regex code) that adds the needed line in front of the following content.

In other words, the “text” content after running that hook code should look like

(image: image3heads.jpg)

## Headline
Some text.

It should also work on a Kirbytag like (image: image3heads.jpg link: http://example.com/the/page target: _blank linkclass: myimage class: floated).

I can’t reproduce that. What is in your config file?

Hm, looks like I get the same result in the Starterkit but not in the project I tested with first. Both use the same Kirby version.

Ah, the difference is that Markdown Extra is enabled in the project where it works without issues. Maybe just enable that in your config and you are good to go. I think it’s an issue with the Parsedown parser.

@texnixe:

Thank you for the fast and above all immediately functioning solution, adding

  'markdown' => [
    'extra' => true
  ],

to the file “site\config\config.php” solves the problem.

I agree to

but I cannot solve that. So I looked for a solution that works without it.

May be you want to add this problem to a (new or existing) “Parsedown parser” issue at Github. Thanks in advance for this too!