How to run Javascript on Markdown "summarize highlights" output?

Hey Jim, @BLUEFROG, Could you be so kind as to modify this code so that:

Instead of Page, it writes the name of the file in the paranthesis in the following format(semicolon)?

Right Now:

How I would love it to be:

1 Like