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
pandoc already supports opml #1
Comments
That's a fair critique. I did start out using pandoc's OPML writer but the decisions it makes (e.g., only headers getting A custom Lua writer didn't work with nested lists and I don't know a lick of Haskell. Hence this approach of doing it in Python via the JSON AST. I have no interest in fragmenting what you're trying to do with pandoc. This approach just felt like the quickest way to get where I wanted to go and I was pretty proud of how it turned out and thought I'd toss it out there. If there's enough interest in this style of OPML, I'd be happy to help contribute patches so it becomes the default pandoc OPML writer. |
OK, that's great -- if you think pandoc's approach is not broken, but just prefer something different, then this seems a good way to go. I don't really know much about OPML myself, or how it is generally used, so when I saw your output I thought we might have been doing it wrong. I wrote the OPML writer based on a pretty quick reading of the specs on line. If you do want to make suggestions for pandoc's OPML writer, it would make sense to do it on pandoc-discuss, where other users can chime in. |
This app certainly makes a lot more sense to me than what pandoc does by default. For instance, the output from this app would be import into logseq much better. |
Given that pandoc already supports opml, you might want to make the rationale for the project clearer in the README.
The output is a bit different from yours. (The level attribute is not used, only headers produce outline elements, and non-header content is attached to headers via the _note attribute.) If you think pandoc's OPML output is not optimal, why not contribute bug reports or patches to pandoc?
The text was updated successfully, but these errors were encountered: