-
-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noparse issue with markdown fields #2161
Comments
Are you using vue or something similar on the frontend? Is that |
It's a set inside a Bard though, if that maybe helps |
Can you confirm that you are looking at the rendered html output (using "view source") rather than devtools? |
So it's correct? |
No, when I type
It shouldn't try to parse what I type inside the markdown field |
Yeah ok sorry haven't finished my coffee. 😅 If you have some other text in the markdown field, you see that, right? Just not the |
Can you paste the yaml for that field in your blueprint? |
Sure, it's just the default Markdown one inside a Bard set
|
I'm pretty sure I'm have the same issue. It looks like there was a change with how markdown is parsed and it no longer parses any variables or tags within the content. We use this a lot for things like I also have a special use case where I've created at widget tag that I can use to display widgets inside a blog post like this Statamic version: 3.0.0-beta.46 |
Matt, you need to add |
This issue has not had recent activity and has been marked as stale — by me, a robot. Simply reply to keep it open and send me away. If you do nothing, I will close it in a week. I have no feelings, so whatever you do is fine by me. |
This is still an issue afaik |
Hi all 👋 I'm experiencing the exact same issue here. It makes it difficult to write Vue.js articles as all template variables are erased from code examples. For example, the following markdown field (where Gets rendered as: A quick <h3>Util methods as filters</h3>
<p>For our final internal plugin, let's use a less heavy example. I often like using filters in VueJs for very common string operations. In case, you're not fam ▶
<pre><code class="language-html">noparse_79e9e31dd2fa3c6adc2472f6f11c1586 <!-- "published" -->
noparse_40ef335f4d0e04ff294feca54ee3f448 <!-- "Published" -->
</code></pre> |
I did some digging and found a non-documented Instead of just using {{ content | raw | noparse | markdown }} I hope this helps. 🍀 EDIT: I've recently figured out that it was a form on the page that was causing this issue for me. I had a form augmenting the However, I did have to add the |
Bug Description
I have a markdown field with the following contents:
This is what gets output when I dump the field in my templates:
The final html however is just
Seems like the
{{ color.label }}
is somehow being parsed.Environment
Statamic version: 3.0.0.-beta-41
PHP version: 7.4
Install method (choose one):
statamic/statamic
The text was updated successfully, but these errors were encountered: