-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
moinmoin reader #185
Comments
Simon Michael simon@joyful.com has started work on a moinmoin reader. I'm not sure Google Code Info: |
I need a moinmoin reader as well for exactly the same reason, to convert trac wiki content into other formats. I just emailed Simon to ask what the status is of his work. Keep your fingers crossed. Google Code Info: |
I heard back from Simon. He has graciously released his MoinMoin.hs implementation, see attachments. Now we simply need this to be integrated into the main release and tested a bit more. He indicated that it was ALPHA code, so use at your own risk. :) -greg Google Code Info: |
History is here: http://joyful.com/darcsweb/darcsweb.cgi?r=pandoc-moin Google Code Info: |
I've added a moinmoin branch to the source on github. This includes Simon's reader, with some minimal modifications to get it to compile against the latest pandoc. This branch allows you to specify 'moinmoin' as reader. It's not yet quite complete enough to include in a release, and it doesn't include a test suite, which we'll need. (This might be derived from something like http://moinmo.in/HelpOnMoinWikiSyntax.) But at least you can compile the code and use what's there. Google Code Info: |
Thanks! I'm not a Haskell hacker so I'm not going to be able to do much with this to help get it into the master branch. I will try to use it as it is now and let you know how it goes. :) Google Code Info: |
Greg, would you be able to share your steps for others who will take anything they can get on the MoinMoin->markdown (my case) path? I have a MoinMoin wiki that only uses basic syntax (mostly headers, lists, and preformatted blocks) that I'd like to migrate to markdown, or some other more popular/modern syntax. I'm also not a Haskell hacker so I'd need instructions that don't involve writing or modifying Haskell code (python or shell are doable though) Google Code Info: |
Peter, I just today corresponded with John MacFarlane about MoinMoin. He's added in all my changes into the main Git repository in the "moinmoin" branch. Check that out and see if it works for your case. I'm not a Haskell hacker, but I am motivated to get this working. I'm using it at work for a critical project, so it has to work. If there is someone else out there with more Haskell-mojo please take up this branch and finish it so John can merge it onto the main branch. Google Code Info: |
OK, I'll try to schedule a time to get that git branch of pandoc running and run some moinmoin data through it and look at the results. Google Code Info: |
Seems to not build for me. [14 of 36] Compiling Text.Pandoc.Readers.MoinMoin ( src/Text/Pandoc/Readers/MoinMoin.hs, dist/build/Text/Pandoc/Readers/MoinMoin.o ) src/Text/Pandoc/Readers/MoinMoin.hs:565:71: Google Code Info: |
Greg's latest changes broke the build. I have reverted them. Try it now. Google Code Info: |
OK, I built it now. Thanks for the quick fix. Running some test moinmoin input pages with markdown output. Here are some issues I've seen so far. I'm using this as a reference. http://moinmo.in/HelpOnMoinWikiSyntax
The markdown output does bulleted lists with "- blah" with those extra intermediate spaces which is not my personal preference but it's fine. The other problems I found I think are just that markdown does not provide as many features as moinmoin so they just get left alone or escaped, which is fine. Google Code Info: |
It seems that this moinmoin reader was based on the markdown reader. It would have been better to start with the RST reader, since RST seems much closer to moinmoin: in particular, in RST, indented blocks are blockquotes, and link nesting is caused by any indentation, as opposed to four spaces in markdown. Google Code Info: |
See #19 for a workaround via moin2rst. |
is there any chance of getting moinmoin2 changes resurrected and applied to main? I've succeeded installing haskell and building pandoc, but can't do the same for the old stale branch and I'm tryig to get moinmoin support for a moinmoin migration. Would be much obliged! |
Sorry, the code is just too ancient (and it was never in great shape to +++ Malcolm Cook [Oct 22 14 18:34 ]:
|
Sorry, but what is the status of this issue? If I understood right, the code needs to be started from scratch, right? I am migrating a MoinMoin wiki to GitHub wiki using https://github.com/mgaitan/moin2git. It uses https://github.com/dwf/moin2rst to convert MoinMoin syntax to reStructuredText but it does not deal with tables... Trying to decide what is my alternatives, I have ~300 tables to convert.. |
@arademaker Thanks for pointing out some alternatives until pandoc has first-class support for MoinMoin syntax. |
The text was updated successfully, but these errors were encountered: