question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

html -> markdown -> html

See original GitHub issue

I wanted to use this plugin to write emails with sublime text. But when I activate GhostText within a gmail compose box, I get html in Sublime, and I don’t want to write my emails in html.

Would it be feasible to integrate GhostText with pandoc? Necessary additions would be

  • new setting “use_pandoc” defaults to false
  • detect if source is html
  • add pandoc -f html -t markdown filter between chrome and sublime
  • add pandoc -f markdown -t html filter between sublime and chrome

pandoc is very fast, so I don’t think speed is a major concern here. If you’re interested in this addition, I can implement it and make a pull request. (If you can tell me where the filters should go, that would be very helpful)

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
subnutcommented, Feb 23, 2021

Select Plain text mode in gmail. Problem solved!

https://useplaintext.email/#gmail-web

1reaction
fregantecommented, Aug 15, 2021

You raise good points, this transformation is going to be lossy and likely a complex feature:

  • when a contentEditable field is selected, the user should be asked:
    • HTML
    • plain text (flatten to .innerText)
    • markdown
  • even before sending, the original content will be irrevocably lost if the user picks txt or md
  • we probably don’t want to support anything but Markdown, this already requires a large library and substantial effort to implement, let alone if we were to offer custom replacements with options. Definitely no to that part.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Syntax - Markdown Guide
HTML. Many Markdown applications allow you to use HTML tags in Markdown-formatted text. This is helpful if you prefer certain HTML tags to...
Read more >
How can I wrap my markdown in an HTML div? - Stack Overflow
Markdown. For Markdown, This is by design. From the Inline HTML section of the Markdown reference: Note that Markdown formatting syntax is not...
Read more >
Markdown Syntax Documentation - Daring Fireball
HTML is a publishing format; Markdown is a writing format. ... Unlike block-level HTML tags, Markdown syntax is processed within span-level tags.
Read more >
HTML to Markdown Converter - Code Beautify
HTML to Markdown Converter helps to convert HTML (HyperText Markup Language) to Markdown markup language and helps to save and share the Markdown...
Read more >
Markdown versus HTML - Google Developers
Markdown is easier to write than HTML, and it's easier for most humans to read Markdown source than HTML source. However, HTML is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found