Skip to content
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

Rewrite #2

Open
thblt opened this issue May 26, 2018 · 0 comments
Open

Rewrite #2

thblt opened this issue May 26, 2018 · 0 comments

Comments

@thblt
Copy link
Collaborator

thblt commented May 26, 2018

This first version is a butched draft. A complete version should support:

  • at the very least, noweb
  • if possible, default values for header arguments in document preamble.

Quick notes for a possible rewriting:

  • Use Haskell! Pandoc can do 99% of the job. A Pandoc AST holds the code blocks with header arguments parsed, and extra indentation removed. Only noweb would remain to handle.
  • noweb can also be used to include the results of a code block, by including it like this:
     <<block_name(optional arguments)>>
    
    I don't think I'll ever support this, as it would mean rewriting most of org-babel, and I really don't see a use case for it. (Also, code blocks could be elisp, which means actually running from inside Emacs)
  • A different approach to noweb could be to let Org handle it, if it's not too slow. Let org expand noweb references, capture the result and tangle.
  • Parsing org headers is probably hard, replacing them with command-line arguments would be easier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant