Write a markdown - Docbook converter The NetBSD Project
Status: Closed Time to complete: 144 hrs Mentors: Julian Coleman, Julian Fagir Tags: C, docbook, research, markdown

This is not strictly for NetBSD, but about another project named libsoldout: http://fossil.instinctive.eu/libsoldout/home

libsoldout is a markdown converter written in C and published under public domain. There are already other tools which do this (markdown-docbook conversion), but they either have a strange licence or many dependencies.

Your task now is to write a renderer which renders markdown to docbook.

You can take the html, man or html converters from the libsoldout website as an example or template.

 

Uploaded Work
File name/URL File size Date submitted
md2db.zip 55.9 KB December 31 2012 16:08 UTC
mkd2docbook.zip 55.4 KB January 01 2013 03:48 UTC
Comments
Task Claimed by wmzhere December 30 2012 03:34 UTC

I would like to work on this task.

Task Assigned by Aleksej Saushev December 30 2012 14:31 UTC

This task has been assigned to wmzhere. You have 144 hours to complete this task, good luck!

Ready for review by wmzhere December 31 2012 16:08 UTC

The work on this task is ready to be reviewed.

Great! by gnrp December 31 2012 17:53 UTC

Thank you very much, the result is great! There are just three caveats:



  • Could you please put everything in one source file, such that it can be included in the base libsoldout?

  • Please add also fill the hook to add a header containing the xml version tag

  • Please make it consistent with the other mk2* tools, they don't require an output file for running

  • Please add a final newline


Though I doubt it's valid for you, I wish you a happy new year. We will review the final submission next year. ;-)


 

Task Needs More Work by gnrp December 31 2012 17:53 UTC

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Ready for review by wmzhere January 1 2013 03:49 UTC

The work on this task is ready to be reviewed.

Very nice! by gnrp January 1 2013 21:39 UTC

I just tried out your program, and it is indeed very good.


It won't work out-of-the-box the way you submitted it (you put a backslash in the path references, and errno.h was missing), but this is only a two-line diff.


Thank you!


 


 

Task Closed by gnrp January 1 2013 21:39 UTC

Congratulations, this task has been completed successfully.

Built on Windows by wmzhere January 2 2013 02:56 UTC

Hi, 


Thank you for your reply. I'm sorry that I used gcc of MinGW (I'm at home using Windows)  to complie it(It's not OS-dependent) and haven't tested it on NetBSD.


I would be careful next time.