loiclec / Apodimark

Fast, flexible markdown parser written in Swift
MIT License
0 stars 0 forks source link

Linux compatibility #1

Open loiclec opened 8 years ago

loiclec commented 8 years ago

I don’t have any virtual machine running Linux so I can’t confirm that Apodimark runs on it. If someone could launch the test suite (CommonMarkConformanceTests) and ensures that there is no compatibility issues, I would highly appreciate it 😊

loganwright commented 8 years ago

@loiclec you could setup a travis box pretty easy, basically copy this:

https://github.com/vapor/vapor/blob/master/.travis.yml

(remove the last line for codecov unless you want it)

then add travis to the repo and it'll run SPM tests on both environments.

Also wanted to say this looks like a cool project. We are using a cmarkdown parser right now, but would like to move to something in pure swift if it exists. If someone makes a 3rd party component that renders html (or if you change your mind about that feature), please tag me 👍

sahandnayebaziz commented 8 years ago

@LoganWright check out Hypertext :) I am just getting started cloning and bringing the two together

loiclec commented 8 years ago

@LoganWright @sahandnayebaziz Right now, the API is unnecessarily complex for doing things like generating HTML. It would be great to write a wrapper with an interface similar to https://github.com/chriseidhof/commonmark-swift. So we would have one library for working with indices (this one, Apodimark), and another for working with strings (the wrapper). But I would like to get to 1.0 before working on that.

An other thing to keep in mind is that I don’t conform 100% to Commonmark, and probably never will. This might cause some issues during the migration. That being said, it is a relatively young project and I don’t think anybody is seriously using it yet. So if you need a particular feature for your use case, I am more than willing to work on it.

sahandnayebaziz commented 8 years ago

@loiclec cool :) My first intuition was that somewhere, at the point that you have parsed markdown into an AST, that would be the right place for an HTML library to step through and read the tree to output HTML elements as it went.

Does that sound right to you?

loiclec commented 7 years ago

@sahandnayebaziz yes, it does! :)