[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] modular block exportation was patch [Feature Addition] exp
Re: [Orgmode] modular block exportation was patch [Feature Addition] exporting comments on org files to html
Mon, 10 Nov 2008 09:26:02 +0100
I think this interesting functionality could at least initially
be implemented as a add-on, hooking into `org-export-preprocess-hook'.
This hook is called before Org looks at any of the blocks, so the hook
could remove blocks or format them and replace them with finished
HTML (in the case of HTML export....) in a BEGIN_HTML ... END_HTML
On Nov 7, 2008, at 8:02 PM, Eric Schulte wrote:
This has had me thinking about the exportation of blocks in
think it makes sense to pull block exportation out into it's own
component both for simplicity and for ease of code-reading, hacking,
with a set of blocks of forms like...
We could have an alist in which we look up the type of the block, and
call the appropriate function to handle exportation. Users could then
add their own custom block export functions to this list.
The optional exportation of these blocks could then be controlled by a
single #+option variable which takes a list of blocks not to export.
I'd be interested to hear anyone's thoughts on this. If it sounds
a good idea I'd be happy to take a stab at implementation.
Cheers -- Eric