Yes .tmp.html can simply be changed to any value you want. The following code does this automatically for you:

def createTables(text=None, name=None): if text is None: text = editor.get_text() if name is None: name = '{}.html'.format(os.path.basename(editor.get_path())) path = os.path.join(os.path.expanduser('~/Documents'), name) with open(path, 'wb') as f: f.write(TEMPLATE.format('\n'.join([ TEMPLATE_ROW.format(x) for x in text.split('\n') if x != '' ]))) webbrowser.open("file://{}".format(path))

However I would recommend against this on the basis that, if the .html was not appended to the name (or even just changing the name in any way shape or form) then it will replace the contents of the file you are working on. While this might be decent when rendered out it is not as easy to read as markdown is as plaintext. Hence I have used .tmp.html as only one file can be open at a time and this reduces 'clutter' from your documents folder (instead of dozens of xyz.md.html duplicate files there is just one .tmp.html). .tmp.html can be deleted whenever you want and will not damage you script file. (Also adding the prefix of . means the file will be hidden (reducing visual clutter)). Sorry if this has gone to far off on a wild tangent. Hope it answers your question as well...