Comments (8)
Select Plain text mode in gmail. Problem solved!
https://useplaintext.email/#gmail-web
from ghosttext.
I have started playing with this in my site-transformations
branch in case anyone else wants to try.
main...luisherranz:site-transformations
For the HTML<->Markdown transformation I'm using unified
(remark/rehype).
The goal is not to get only HTML<->markdown but also a way to do other replacements, because sites that use HTML don't play 100% well with the plain markdown converters. For example, the markdown quote (> Text
) is not being transformed to the Gmail HTML quote, which means that we also need to do some replacement with RegExp.
Even sites that use Markdown, like Slack (with markdown turned on), need other replacements, like for example turning Slack's bold text (*bold*
) into markdown bold text (**bold**
) and vice-versa.
Finally, this type of site transformations/integrations, if ever accepted by @fregante, probably need either:
- Some kind of code-splitting (probably using dynamic
import()
's) so the required for a site is only loaded when loading that site. - A user interface to configure RegExp replacements and activate
HTML<->Markdown
conversion per site, so hardcoded site transformations are not needed.
Anyway, it's too soon for that, for now, I'm just going to explore what type of transformations are needed for the different sites. If anyone else wants to work on this, please send a PR with your transformations/replacements in my fork, with site-transformations
as the base branch.
from ghosttext.
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.
from ghosttext.
It might be possible, but I would try to build a more general way with custom filters.
But I would need some time finding a way implementing custom filters.
from ghosttext.
We might want to keep this in the browser part so it can be easily shared.
Edit: maybe not for size reasons
from ghosttext.
Any progress on this front? Or best practices to use GhostText to compose emails
in Gmail?
from ghosttext.
Bump -- Gmail compose windows remain ungainly HTML. Any progress on this
front?
from ghosttext.
Select Plain text mode in gmail. Problem solved!
@subnut Hmmm, I tried to set my Gmail to plain text mode. The decorative elements are removed. However, it still sorts of HTML formatted and requires the <div>
tag to start a new line.
from ghosttext.
Related Issues (20)
- Activation shortcut broken on Firefox on 23.3.16 HOT 3
- CodeMirror 2 Support (Jenkins) HOT 2
- Unable to use on CompilerExplorer/godbolt.org (Monaco Editor) HOT 1
- TiddlyWiki multiple active notes HOT 1
- Automatically open an editor when starting the extension HOT 1
- GhostText not working on coderpad.io (Monaco Editor) HOT 1
- Ghost Text Not Working HOT 4
- Close the VSCode tab after disconnection HOT 3
- Connection is lost after save HOT 4
- Problem with two-way sync on firefox and neovim HOT 2
- CodeMirror 6 / jupyter notebook 7 issues HOT 2
- CodeMirror 6 only works on the first connection, then a reload is required
- submit form changes from text editor HOT 2
- textarea modified by javascript HOT 1
- GhostText for input fields HOT 2
- Not Working for Cinny and Element HOT 1
- Support for github.dev and vscode.dev HOT 1
- Doesn't seem to work on StackOverflow.com HOT 11
- is it secure to listen on *:4001 ? HOT 1
- Does it work in codecademy editor? (Monaco editor) HOT 3
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 ghosttext.