You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm puzzling over some of the code in markdown-export. After running markdown-after-export-hook, if the buffer is modified by any of the hooks or markdown-standalone, it is re-read from that initial state init-buf-string. Why is that? snip here:
Is there any reason why this is happening? It doesn't seem to affect anything normally, but I'm working on an asynchronous-export feature for fun (#56) and this erases any input the user has entered from the time export begins to the time the process ends.
The text was updated successfully, but these errors were encountered:
This was mostly added in commit ae0aeb3. I had to look back at the description to refresh my memory (but the motivation wasn't really written down there). The idea is that functions that run with markdown-before-export-hook are preprocessors of a sort that need to modify the raw Markdown source before being sent to the Markdown processor. For example, one might run a script to carry out automatic equation numbering in a mathematical document. We wouldn't want to actually modify the Markdown document for this, rather, just make the changes temporarily before running Markdown.
I'm puzzling over some of the code in
markdown-export
. After runningmarkdown-after-export-hook
, if the buffer is modified by any of the hooks ormarkdown-standalone
, it is re-read from that initial stateinit-buf-string
. Why is that? snip here:Is there any reason why this is happening? It doesn't seem to affect anything normally, but I'm working on an asynchronous-export feature for fun (#56) and this erases any input the user has entered from the time export begins to the time the process ends.
The text was updated successfully, but these errors were encountered: