Juan Manuel MacĂas <maciasch...@posteo.net> writes: > I am writing an *.el file from an *.org file (and then I run > org-babel-tangle). With the header argument `:comments org' not only the > text in my org file is converted to comments (my desired goal) but also > the drawers, keywords and other Org metadata. Since I don't see that all > that stuff is necessary in a source file, wouldn't it be better to get > rid of it during the tangle process, leaving only pure content as > comment strings? Maybe converting the Org file content to plain text > with ox-ascii, or something like that? > > What do you think?
You can customise org-babel-process-comment-text to something like (lambda (string) (org-export-string-as string 'ascii t)). Untested though. Best, Ihor