DrQuincy Posted July 12, 2023 Share Posted July 12, 2023 I want to manually render a string as markdown (TextformatterMarkdownExtra). How can I do this? E.g. This is _a_ string becomes <p>This is <em>a</em> string</p> Thanks. Link to comment Share on other sites More sharing options...
da² Posted July 12, 2023 Share Posted July 12, 2023 Hello, Documentation of this module is here: https://processwire.com/api/ref/textformatter-markdown-extra/ You can do something like: modules('TextformatterMarkdownExtra')->format($text); 1 Link to comment Share on other sites More sharing options...
bernhard Posted July 12, 2023 Share Posted July 12, 2023 3 Link to comment Share on other sites More sharing options...
DrQuincy Posted July 12, 2023 Author Share Posted July 12, 2023 Perfect, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now