Jump to content

Parsedown/Markdown: prevent autolink?


gerritvanaaken
 Share

Recommended Posts

5 hours ago, gerritvanaaken said:

Can it be turned off somehow, or do I have to install a custom Textformatter plugin which has this option turned off?

The module does not allow for any Parsedown settings to be set in the module config, so you will have to copy the module to /site/modules/ and make changes there.

If you use the Parsedown Extra flavour then you would edit line 70:

$str = $extra->setUrlsLinked(false)->text($str);

If you use the 'normal' flavour then do the same for line 62.

  • Like 2
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

×
×
  • Create New...