Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jiandandaoxingfu committed Nov 6, 2023
1 parent 56cd8e4 commit b0a5c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function math_format(math) {

function upload_handler() {
let file = document.getElementById('upload-input')?.files?.[0];
if( !(file?.name.match(/\.(tex|md)$/)) ) return;
if( !(file?.name.match(/\.(tex|md|TEX)$/)) ) return;
let reader = new FileReader();
reader.onload = function() {
let result = this.result.replace(/\r\n/g, '\n').replace(/\\bm #1/g, '\\boldsymbol #1');
Expand Down

0 comments on commit b0a5c6f

Please sign in to comment.