Skip to content
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

Javascript element is being removed #1691

Closed
ksurya opened this issue Aug 19, 2018 · 3 comments
Closed

Javascript element is being removed #1691

ksurya opened this issue Aug 19, 2018 · 3 comments
Labels

Comments

@ksurya
Copy link

ksurya commented Aug 19, 2018

I'm adding the following element to a markdown file, but its not getting saved.
<script async src="https://www.googletagmanager.com/gtag/js"></script>

@ksurya ksurya changed the title Javascript element is getting removed Javascript element is being removed Aug 19, 2018
@abnerlee
Copy link
Contributor

How to reproduce this?

@ksurya
Copy link
Author

ksurya commented Aug 20, 2018

Typora Version 0.9.9.17

  1. Open a markdown file with Monospace Dark theme
  2. Add the below snippet
  3. Save the file
  4. Reopen the file, the first line in the snippet will be missing
<script async src="https://www.googletagmanager.com/gtag/js"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-xxx-x');
</script>

@abnerlee
Copy link
Contributor

Please check new updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants