Merge pull request #2588 from overleaf/ns-add-text-extensions

add more extensions to editable files

GitOrigin-RevId: f2a52eee148a78c8cb3623f27e25f2e0801ef835
This commit is contained in:
Simon Detheridge 2020-02-12 15:26:11 +00:00 committed by Copybot
parent 9e6323caeb
commit de40289b38
2 changed files with 38 additions and 2 deletions

View file

@ -20,7 +20,16 @@ const FileTypeManager = {
'.lbx',
'.bbx',
'.cbx',
'.m'
'.m',
'.lco',
'.dtx',
'.ins',
'.ist',
'.def',
'.clo',
'.ldf',
'.rmd',
'.lua'
],
IGNORE_EXTENSIONS: [

View file

@ -15,7 +15,34 @@ define(['base'], App =>
const TAIL_OF_URL_LENGTH =
MAX_URL_LENGTH - FRONT_OF_URL_LENGTH - FILLER.length
const textExtensions = ['bib', 'tex', 'txt', 'cls', 'sty']
const textExtensions = [
'tex',
'latex',
'sty',
'cls',
'bst',
'bib',
'bibtex',
'txt',
'tikz',
'rtex',
'md',
'asy',
'latexmkrc',
'lbx',
'bbx',
'cbx',
'm',
'lco',
'dtx',
'ins',
'ist',
'def',
'clo',
'ldf',
'rmd',
'lua'
]
const imageExtensions = ['png', 'jpg', 'jpeg', 'gif']
const previewableExtensions = []