You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using markdownload for a while, with no errors.
However lately it started to copy the literal html markup between the three backticked source code blocks.
I mean, if there is a code sample in the page the result is:
three backtick
literal html markup with spans, divs, etc copied here, instead of the pure code sample text
three backtick
I am using latest Chrome version 120.0.6099.199 (Official Build) (64-bit), markdownload 3.3.0 and using Chrome context menu Markdoenload -> Copy Selection as Markdown
The text was updated successfully, but these errors were encountered:
I've found that if you use the 4 space code block style instead of the backtick style, it works fine. It's annoying to have to convert them to backticks so you can get normal codeblocks that support language highlighting.
I checked out this site and looked at the HTML source. It looks like there actually is a <span> and color element between every letter of every codeblock. My theory is that this is some work-around so that code highlighting will work for people who have javascript blocked.
The code is still within a <code> tag, so I think it'd be possible to cut out the spans that are between every letter by changing how it's handled in the turndown.js file. I'd write a pull for it, but my javascript is shit.
So if anyone is game to fix this that'd be where I would start.
I am using markdownload for a while, with no errors.
However lately it started to copy the literal html markup between the three backticked source code blocks.
I mean, if there is a code sample in the page the result is:
three backtick
literal html markup with spans, divs, etc copied here, instead of the pure code sample text
three backtick
I am using latest Chrome version 120.0.6099.199 (Official Build) (64-bit), markdownload 3.3.0 and using Chrome context menu Markdoenload -> Copy Selection as Markdown
The text was updated successfully, but these errors were encountered: