Skip to content
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

Combining features from GFM and Extra? #110

Open
mindplay-dk opened this issue Sep 2, 2015 · 1 comment
Open

Combining features from GFM and Extra? #110

mindplay-dk opened this issue Sep 2, 2015 · 1 comment

Comments

@mindplay-dk
Copy link

Is there an obvious way to combine features from GithubMarkdown and MarkdownExtra that I'm missing?

Specifically, I'd like to have GitHub-flavored markdown plus one or two features from Markdown Extra, mainly special attributes for headers, but this appears to be hard coded into MarkdownExtra rather than available as a trait?

Is there any practical reason why the implementations don't follow the same pattern of applying features as traits through and through? The documentation seems to suggest the idea that you could take features from different implementations and combine then in your own implementation, but maybe the traits were simply a means of sharing certain features between implementations internally?

@cebe
Copy link
Owner

cebe commented Sep 3, 2015

In general most of the markdown features can be combined using traits. For attributes however the implementation is very hard to extract as attributes are bound to each element in a slightly different way. that is the reason they can not easily be added like other features. I might have a look whether it is possible to adjust general design to improve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants