Comments (12)
+1
from dillinger.
+1
from dillinger.
Pull requests accepted! =)
This would require a clientside version of github flavored markdown and a node module. They may both exist and if so let me know and I'll add them.
from dillinger.
Touchée! Will investigate and maybe start implementing (and learn to node.js) tomorrow. Open Source, fuck yeah!
from dillinger.
Sounds good!
from dillinger.
So... It would seem that your app does support GFM (at least most of it).
These features have been implemented within showdown.js for the GFM preview page (repo) and you can see them in your showdown.js tagged with GFM.
However the dev candy features of Fenced code blocks and Syntax highlighting were never implemented and probably never will as they later on deprecated the live preview in favor of the preview link wherever markdown is available, which is rendered server-side. Also these features are not implemented in github_markdown_preview, another project which uses the same showdown.js, either.
So back to square one: no existing implementation, should either patch showdown.js or make a new node module.
from dillinger.
Thanks for the update. Shall I go ahead and close? Or do you think you may be working on a patch?
from dillinger.
I'll close for now, will reopen (or open another more specific one) by next week should I have time to spare.
from dillinger.
so, after addyosmany twit today and also mathiasbynens twit I ended up hacking some simple code to add syntax highlight and fenced code blocks support, should be trivial to merge this kind of change.
I know that the syntax support will need more patches since highlight.js doesn't understand js
as a language, only javascript
- a simple dictionary should be able to translate all the alias to the proper language names tho...
anything else missing?
from dillinger.
just reminded about another thing, GFM nowadays is different from the parser that GitHub uses to parse README.md
files, newlines are treated differently (README files you can hard wrap lines, on comments preview you can't). I had to edit showdown on mdoc to avoid line breaks.
from dillinger.
Cool! Did you commit this to showdown or do you have fork somewhere?
from dillinger.
I haven't forked it, I just did the replacements before running showdown (for the code blocks) and commented the line that adds the line breaks... The proper way of doing it would be to fork showdown and add some configuration support to it, but since I hacked the mdown live preview in <30min and mdoc in less than 1 day I didn't really spent too much time doing things the "right way".
from dillinger.
Related Issues (20)
- Image not present when exported to PDF HOT 3
- Error on npm i HOT 2
- Graceful way to upgrade dependencies HOT 2
- Doesn't scroll with up/down arrow keys
- Documentation/Installation Issues: Node Version HOT 3
- [bug] Zen Mode - autosave doesn't work
- Build status? Travis CI link goes 404
- Is this repo still maintained? README vastly out of date (not even node 16 supported) HOT 4
- Dillinger fails to understand expression inside LaTeX environment
- File size issue
- Use Chrome Extension to manipulate the markdown HOT 1
- Using unicode format codepoint Word Joiner is buggy
- OneDrive Import -> "This API is no longer supported"
- Dropbox plugin secretkey error
- Ordered list items with parentheses don't expand in PDF export HOT 1
- Bug: Unable to import locale file (binary file)
- Feature: "Import from" any remote git repo (Forgejo, Gitea, GitLab)
- Site down HOT 1
- Dillinger does not parse soft line-breaks
- Support for MARP
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 dillinger.