html output copied to Blogger

Terry Brown's Avatar

Terry Brown

16 Jul, 2016 03:46 PM

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

  1. Support Staff 1 Posted by Brett on 16 Jul, 2016 04:27 PM

    Brett's Avatar

    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. 2 Posted by Terrence Brown on 16 Jul, 2016 04:51 PM

    Terrence Brown's Avatar

    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

  3. Support Staff 3 Posted by Brett on 16 Jul, 2016 06:10 PM

    Brett's Avatar

    It's a check box in the Save dialog that comes up when you select a target
    location for the export.

    - Brett

  4. 4 Posted by Terrence Brown on 16 Jul, 2016 06:14 PM

    Terrence Brown's Avatar

    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

  5. Support Staff 5 Posted by Brett on 16 Jul, 2016 06:17 PM

    Brett's Avatar

    Interesting point. That would possibly be a more intuitive interface
    design.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Text_Editing_on_iOS_9.html 26.8 KB
  • Text_Editing_on_iOS_9.md 13.5 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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