export { fileUrl as filePath, originalFileUrl, stripFileHtml, downloadFile, previewFiles } from './file-access'
import { fileHtml } from './file-access'
/** Preserve existing responsive article images while signing resource attributes. */
export const parseHtml = (html: string) => fileHtml(html || '').replace(/
]*>/gi, img => {
const required = 'max-width: 100%; height: auto; display: block;'
const style = img.match(/\bstyle\s*=\s*(['"])([\s\S]*?)\1/i)
if (!style) return img.replace(/![]()