Comments (29)
Found this issue by not being able to use 3 backticks (before/after) while trying to format a bit of code. Had to use 4 indents instead, which is very annoying. Then I stumbled upon this issue but noticed it's no longer active.
I have 2 questions:
- Are people still interested in getting this? If yes, any chance someone's gonna work on implementing - at least - the GH format for code blocks?
- Are people considering using http://commonmark.org/ which is supposed to become the new Markdown standard?
from markdown-js.
I got really inspired by seeing the checkmark support in GFM (https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments) and would like to see this adopted in.
However, when I started to poke at it it seems that is conflicts with the check for links [.*] vs [ ] and [x]. I'm not sure how best to solve this in a good way, but I got it working by simply doing a check in the link handler if the res[1] is ' ' or 'x'.
If you want to give some further guidance, I can try my hand at some other contribution.
And not to hijack, but I don't think GFM is feature complete without being able to update the checkmark content in some capacity. Is this something you think ultimately markdown-js should facilitate or should it be entirely up to the application?
from markdown-js.
If you can live without maruku-like attributes, you can try https://github.com/markdown-it/markdown-it . It supports all GFM
/ PHP Markdown Extra
/ Pandoc
extensions, and provides api for plugins.
from markdown-js.
I would +1 to this feature. At the very least, having the Syntax highlighting php //code here
support would be phenomonal
from markdown-js.
+1
from markdown-js.
Support for this as a dialect should possible.
Its probably not that much work if you base it on the existing standard dialect (look for Maruku how do that).
Unfortunately I don't have time to do this right so 'patches welcome' I'm afraid.
from markdown-js.
So I have actually already done this: https://github.com/gjtorikian/namp/blob/master/lib/markdown.js#L1143
But my repo is currently messed up because of some changes I made a month ago. I don't think it would be appropriate to do a PR but you can by all means just copy the dialect code.
from markdown-js.
@gjtorikian, thanks a lot. I will rebase your commits to send PR.
from markdown-js.
Also forgot to add that I also do not have the time to fix my own code at the moment--hence lack of PR ;p
from markdown-js.
NP. Anyway some codebase is very good point to work on than from scratch.
from markdown-js.
+1
@akzhan, it is ready?
from markdown-js.
@rlidwka, @1602 shows me another project at https://github.com/isaacs/github-flavored-markdown, and now it meets my needs.
from markdown-js.
@akzhan , oh... that's the same old Markdown engine originally written in Perl and ported line-by-line then.
Unfortunately, it has no central repository (forks are scattered all over the internet). It's written using regexp very much that's good in perl but hard to maintain in javascript. It has no plugin system, so everyone just naturally rewriting it's core to every specific project.
I think i'd stick with this one...
from markdown-js.
As you might have noticed I did a lot of tidying up (mainly getting the test suite running again) and closing of the easier bugs on the markdown project this weekend.
Hopefully I'll be getting onto this soon if someone else doesn't beat me too it.
from markdown-js.
I'm working on a super simple, open source Markdown editor in the browser (based on Mou). I'd absolutely love to have github flavored markdown, and basically would love to have this feature included in markdown.js.
Just voicing my support on this issue.
Thanks so much for your work, @ashb.
from markdown-js.
any news here? I'd love to have this as well.
from markdown-js.
I made a start on the gfm branch - Can't remember how far I've gotten though...
from markdown-js.
Yay for ambiguous markdown syntax. Cos there's not enough of that already...
And not to hijack, but I don't think GFM is feature complete without being able to update the checkmark content in some capacity. Is this something you think ultimately markdown-js should facilitate or should it be entirely up to the application?
My first thought is that this is something application specific, but we might be able to help by giving functions to find the character offset to the [ ]
so that it can be easily changed... Hmmm.
from markdown-js.
Getting the character offset would be really useful, generating markup like would make this pretty easy to implement in any application. As it stands, I did a really terrible regex based on the remaining line so I can match.
I pushed my earlier attempt to http://j.shirley.im/tech/yui/gallery-markdown/ which shows it working with the horrible regex, just to demonstrate usage.
I plopped my hack in the Gruber inline section, simply because there wasn't a GFM dialect present and I wanted to just experiment with it from a user-facing perspective.
from markdown-js.
I'd like to see this implemented as well.
from markdown-js.
It would indeed be great to have this! Any progress?
IMO, the most important things are: distinguishing single backticks and triple backticks (including their βtype tagβ) and tables.
from markdown-js.
Any workarounds different that using branch that is 160+ commits and 2 years behind master
?
from markdown-js.
It's a shame that it markdown-js doesn't support it. I have to use marked for it which doesn't support custom syntax, a loss-loss both ways.
from markdown-js.
+1
from markdown-js.
i would consider github flavored markdown the current standard in markdown, at least among all the users i know. definitely π for this feature
from markdown-js.
+1
from markdown-js.
+1
from markdown-js.
+1
from markdown-js.
+1
from markdown-js.
Related Issues (20)
- Link to `lib/markdown.js` not working in readme HOT 1
- Strikethrough component doesn't work. HOT 1
- Code Syntax Highlight
- Unable to resolve module `../../constants/index` from `D:\GitHub\medred\app\src\ stories\screens\Specialty\index.js`: could not resolve `D:\GitHub\medred\app\src \stories\constants\index' as a folder: it did not contain a package, nor an inde x file
- Can't distinguish code language HOT 1
- support parase "[TOC]"? HOT 1
- [BUG] href not correctly parsed when text and its url both contains underscore. HOT 3
- *** Text *** parse was strong , but Italic not effective HOT 1
- Two links following one another
- Add note to README that this repo is not maintained HOT 2
- The speed of the Markdown-js is too bad. HOT 2
- Load external Markdown File in html.
- Inline HTML is escaped? HOT 2
- Vulnerability issue HOT 2
- π¨ Potential Security Vulnerability HOT 1
- Trying to get in touch regarding a security issue HOT 1
- Images not getting converted properly in certain cases
- (wrong repository) HOT 1
- the "table" cannot use HOT 4
- how to convert .md file into .html
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 markdown-js.