html output copied to Blogger
I have a markdown file that Marked likes perfectly well. If I export to html, then I can open the created html file perfectly in Safari. If I copy this html and paste into Blogger as html, Blogger rejects it with the message:
Your HTML cannot be accepted: Tag is broken: TOKENS
This is from the <script> that Marked tacks on to the end of the body of the document. This is valid html, so I suspect Blogger is simply rejecting the script tag with a not so helpful message.
Question is, can I tell Marked not to add this? Or do I just have to keep deleting this section when pasting html to Blogger?
I have attached the files in question for you to look at.
Thanks,
Terry Brown
- Text_Editing_on_iOS_9.html 26.8 KB
- Text_Editing_on_iOS_9.md 13.5 KB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 16 Jul, 2016 04:27 PM
Export without Style. This will give you very clean code. You can also use "Copy HTML" to get the clean HTML directly to clipboard.
-Brett
2 Posted by Terrence Brown on 16 Jul, 2016 04:51 PM
I knew there had to be a solution to this—Marked can do anything!
Copy HTML works perfectly for me.
However, I can’t figure out what to change in Settings to Export without Style??
If I select Export, nothing happens. If I select Export HTML, I get the <script> stuff.
Thanks,
Terry
Support Staff 3 Posted by Brett on 16 Jul, 2016 06:10 PM
It's a check box in the Save dialog that comes up when you select a target
location for the export.
- Brett
4 Posted by Terrence Brown on 16 Jul, 2016 06:14 PM
Got it, thanks. I was confused because when I dropped down the style box, “none” wasn’t there. Didn’t realize that unchecking “Include preview template in output” was what I needed.
Terry
Support Staff 5 Posted by Brett on 16 Jul, 2016 06:17 PM
Interesting point. That would possibly be a more intuitive interface
design.