-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
# Paste **MarkDown** #2531
# Paste **MarkDown** #2531
Conversation
What's the impact on bundle size by pulling in |
10.7 kb gzipped... I'm fine either way, I think this is a nice surprise enhancement. I mainly want to show here that it's easily possible to add, and that not everything would run through the parser, only plain text. Also this may be a place then where we would want to add a filter for plugins. |
542045e
to
1285cf3
Compare
Codecov Report
@@ Coverage Diff @@
## master #2531 +/- ##
==========================================
- Coverage 33.69% 33.65% -0.04%
==========================================
Files 185 185
Lines 5594 5615 +21
Branches 976 980 +4
==========================================
+ Hits 1885 1890 +5
- Misses 3141 3155 +14
- Partials 568 570 +2
Continue to review full report at Codecov.
|
Okay, so this will now do two things.
The PR uses showdown, but we can easily use anything else later of course. |
We should have updated |
Updated in ff1ef2b |
Thanks @aduth! Sorry about that, wasn't aware of package-lock. |
No worries, since we don't explicitly target the version of Node that comes bundled with npm5+ (until LTS release in October), we maybe shouldn't have the |
@aduth The |
That still seems like a pretty good benefit on its own, if you ask me. Part of it is that it's automatic, so it becomes a nuisance to be merely running But then, I saw what you'd referred to come past, but I'd have to think it still provides some benefit; surely they wouldn't make the thing useless? 😄 I'll have to do some reading over the weekend. |
This adds MarkDown parsing to the paste handling if the posted content is plain text. It won't parse anything if you don't paste from a plain text editor.
This is a WIP... Still need to have a look how to handle inline text better and at the parsers available. Any suggestions? Showdown is is used by Ghost so I picked that for now.