DEV Community

Cover image for We started a new open source project: markdown2document
Leonora Der for floppylab

Posted on

We started a new open source project: markdown2document

So it was the second time when we had to turn markdown content to pdf in a project... so I simply extracted the relevant code, then I only had to put it into a shape so that it can be used in many ways.

Currently you can:

  • add markdown content/files (even as a link)
  • add style (css as link or text)
  • generate pdf
  • generate html

Please check it here:

GitHub logo floppylab / markdown2document

turn markdown files to a PDF or HTML document

Upcoming stuff:

  • use as a command line tool
  • publish in maven central

All contributions are welcome :)

Alt Text

Discussion (16)

Collapse
olegthelilfix profile image
Oleg Aleksandrov

Hi, it's alway cool to see new open source projects on java. Thanks)

Collapse
mrrcollins profile image
Ryan Collins

How does this compare to Pandoc?

Collapse
taimoorsattar7 profile image
Taimoor Sattar

Great. A handy tool to convert markdown to PDF and HTML as Java open source project. I also wrote to get started guide for markdown.

Collapse
leonorader profile image
Leonora Der Author

Nice tutorial! You could extend it with the topic of different markdown flavors :)

Collapse
slimcoder profile image
Slim Coder

Great project ,
I also created a markdown converted 馃樆馃コ
check md2urdu converter : github.com/Techistan/md2urdu

Collapse
leonorader profile image
Leonora Der Author

looking great! :) although I do not speak Urdu, it seems an interesting idea to translate files to another language :)

Collapse
slimcoder profile image
Slim Coder

Yeah! i would like to extend this idea. maybe i will add support for different languages also , and it is vscode extension you can simplay install it by searching md2urdu .

Collapse
bravemaster619 profile image
bravemaster619 • Edited on

I have two questions:

  1. The sample md link in App.java seems not working.
  2. How will be command line like? Can you show me its format and switches?
Collapse
leonorader profile image
Leonora Der Author
  1. Oh yes, thanks for the heads up, I have recently made some structural changes on our website and I forgot to update that... I will soon update that :)
  2. I pushed an initial version of it like an hour ago and added documentation here: github.com/floppylab/markdown2docu... You are free to modify it, it is really a version #0 of this feature. :)
Collapse
leonorader profile image
Leonora Der Author

I have just edited readme. :) New location of the files: floppylab.com/resources/markdown2d...

Anyway, what are your plans on contribution? Feel free to open an issue :)

Collapse
fake_faith profile image
鎹忛犵殑淇′话 • Edited on

People of Java communitiy have been waiting so long for this!

Collapse
willwallaceii profile image
William Wallace

This is a great idea. I've had to use a combo of Apache Velocity and iPDF in the past to accomplish this. Looking forward to checking this out

Collapse
bravemaster619 profile image
bravemaster619

Hi, which Java version should I use to contribute? :)

Collapse
leonorader profile image
Leonora Der Author

Hi, it's built on top of Java 8 :)

Collapse
javaarchive profile image
Raymond

I have a feeling that this is going to be real neat project. I've seen software like this, and it usually ends up looking really good