question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<mj-raw> in <mj-head> doesn't work (content of mj-raw doesn't appear in rendered <head>)

See original GitHub issue

Reproduction Steps:

I put a following block in <mj-head>, expecting the meta tag to appear in rendered html.

<!-- shis should work but it doesn't -->
<mj-raw>
	<meta name="format-detection" content="telephone=no, address=no, email=no, date=no" />
</mj-raw>

Expected behavior:

<meta> shows up in <head> section of rendered html.

Observed behavior:

<meta> tag is not there.

However, this hack works:

<!-- this hack works -->
<mj-style>
	</style>
	<meta name="format-detection" content="telephone=no, address=no, email=no, date=no" />
	<style>
</mj-style>

MJML version:

4.0.3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ngarniercommented, Jan 7, 2019

No regression, more likely a version conflict on @donni106 side. Let’s keep the conversation in https://github.com/mjmlio/mjml/issues/82#issuecomment-451934759 to avoid spreading it across multiple issues.

1reaction
iRyusacommented, Sep 3, 2018

Hi, It’s WIP addition for 4.2.X see #82 (some of tickets of 4.2 has been closed but not pushed yet, a beta should be released this week)

Read more comments on GitHub >

github_iconTop Results From Across the Web

mjml-raw-nominify - NPM Package Overview - Socket.dev
mj -raw. Displays raw HTML that is not going to be parsed by the MJML engine. Anything left inside this tag should be...
Read more >
My custom HTML code doesn't render correctly on Gmail
My problem is: After creating a new email with “Code Mode”, editing the HTML, and saving the email, Mautic (or probably GrapesJS) refactor...
Read more >
MJML (unofficial fork) - Visual Studio Marketplace
Launch VS Code Quick Open ( Ctrl+P ), paste the following command, ... wraps ... in mj-head tags which are only rendered when...
Read more >
Knitted HTML not rendering properly, showing raw html only
When knitr to html from my project folder and I open it up in a browser the html file ... <head> <meta charset="utf-8"...
Read more >
MJML: mj-include fails to read file - Stack Overflow
It does work for me when I put the <mj-include> elements after <mj-head> . Good luck! I'm interpreting the rest of your post...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found