justinvh / Markdown-LaTeX

This Markdown extension adds inline LaTeX support without the need for external images.
Other
127 stars 15 forks source link

Temporary files should be placed in a temporary directory isn't of littering current working directory. #15

Closed ferrouswheel closed 6 years ago

ferrouswheel commented 11 years ago

A temporary file is made in the current working directory, and .dvi .png files are generate from this filename.

It'd be nicer if a temporary directory was created for these temporary files using tempfile.mkdtemp

Also - use of mktemp is discouraged/deprecated:

http://docs.python.org/2/library/tempfile.html#tempfile.mktemp