Jump to content

Using markdown in an image description


opalepatrick
 Share

Recommended Posts

Hi there, this was addressed way back in 

I am not able to do this either. It is in a legacy site. I updated to the latest wire version 2.8.62, tried the ideas in the other post, but still cannot get markdown to behave in this field. Any ideas as to how this can be done?

Link to comment
Share on other sites

you can just call the module, and format the description, in your template file, at least this is how it works for me:

$md = $modules->get("TextformatterMarkdownExtra");
$desc = $image->desc;
$md ->format($desc);

 

Link to comment
Share on other sites

Thank you Macrura and Robin S - I have finally got it working after trying both methods (and a few others) - in the end, it was a rookie error in that I needed to logout and back into admin to make the changes to the latest legacy pw version. Then it worked as per Robin S - which is where I started ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...