I often add
#Content of sample.script as top line in my org-babel scripts.
Thus the reader knows the name of the tangled file:
#+begin_src sh :tangle sample.script #Content of sample.script echo helloWorld #+end_src
What do I need to do in order to automatically add the tangled filename as comment on exporting to e.g. markdown?