Jump to content

Recommended Posts

Posted

Hello,

I want to use the field description to explain the usage of some markdown syntax. How do I stop it rendering the markdown I'm entering?

I've tried wrapping the lines in <pre><code> but it doesn't seem to work.

-Marty

  • Like 1
Posted

Excellent question. I’ve been having this problem as well. So far I haven’t found a better way than disrupting markdown with zero-width non-breaking spaces, e.g. ***⁠*This is bold****.

Edit: note how I was going to use a zero-width non-breaking space inside the entity above to keep that from rendering, but decided against it so you could just copy it. So be aware if you use this method, your users won’t be able to copy your example code from your field description and try it out in the field.

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
  • Recently Browsing   0 members

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