3 ms·
Just want to note that Google Chrome headless recently landed support for correctly rendering text files. Prior to this, when in headless the file was not rende
by keepamovin 3y ago
Just want to note that Google Chrome headless recently landed support for correctly rendering text files. Prior to this, when in headless the file was not rendered, and IIRC was simply downloaded, unlike what happens in regular headful chrome.
As a workaround before this fix, I created a secure document viewer that used pandoc and latex to template layout the text file in correct form. We intercepted the navigation request / download request to a text file and passed it to the secure viewer to be rendered using latex and pandox -- most complex pipeline ever for displaying ASCII!! hahaha :)
Interested readers can find the latex template here^0 and the overall projec this was part of, here^1 :) haha :)
0: https://github.com/BrowserBox/BrowserBox/blob/e437155fb582ccdf730ebc0c40721dba336261a0/src/services/pool/chai/scripts/convert.sh#L42 https://github.com/BrowserBox/BrowserBox/blob/e437155fb582cc...
1: https://github.com/BrowserBox/BrowserBox https://github.com/BrowserBox/BrowserBox
- deleted 3y ago[deleted]