Comments (2)
There's more than just underscores at work here, turndown escapes a lot of things. Here is their explanation: https://github.com/domchristie/turndown#escaping-markdown-characters
Turndown uses backslashes (
\
) to escape Markdown characters in the HTML input. This ensures that these characters are not interpreted as Markdown when the output is compiled back to HTML. For example, the contents of<h1>1. Hello world</h1>
needs to be escaped to1\. Hello world
, otherwise it will be interpreted as a list item rather than a heading.To avoid the complexity and the performance implications of parsing the content of every HTML element as Markdown, Turndown uses a group of regular expressions to escape potential Markdown syntax. As a result, the escaping rules can be quite aggressive.
I'm not sure how to best resolve this. I could provide a custom override of the escape function, but it seems complex...
from markdownload.
There's now an option to disable the turndown escaping, which should prevent underscores, etc being escaped.
Let me know if you have issues with it, but for now this issue is closed
from markdownload.
Related Issues (20)
- convert html table to markdown table format when using "send text selection to obsidian" in browser
- mathjax v3 not extracted on this page
- Better Android support: add "copy selected text to clipboard" option HOT 1
- Better Android support: scale interface to full viewport width & height
- [Documentation] Add step-by-step instruction to use obsidian integration
- Images cannot be displayed. It is recommended to add ![](UNIX timestamp/image file)
- Does this work on ChromeOS?
- Add possibility to define trimming rules and then trim superfluous parts of markdown produced based on them, automatically (based on URL) or as a button
- Image filename prefix template with `{pageTitle}` ignores changes to `pageTitle`
- Markdown clip download fails if website does not have a 'title' tag HOT 1
- MarkDownload can't save images directly to an Obsidian vault via "Copy selection as markdown" HOT 4
- Code blocks still unreadable after #312
- Part of the page is missing
- Images not rendering due to mismatched URIs HOT 1
- Images not rendering / long filename issue on Mac
- [Feature] Write link data-src instead img src
- Send to Obsidian fails for HTTP sites (no SSL/TLS)
- [Feature] Allow to preserve "{}" in front-/back-matter template during download
- Clip multiple web pages to a default download or obsidian specific folder with one click
- kebab / snake not replacing spaces in filename
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdownload.