Open pdpinch opened 3 years ago
If we allow embedding PDFs, one thing to be careful about is that resourcetype="Document"
is not not just PDFs, it's all files with MIME type text OR s3 extension in this list: https://github.com/mitodl/ocw-studio/blob/c17e5cab6fb2410788c14e3ef667ccc3183312bd/gdrive_sync/constants.py#L16
at least for new courses. Unsure what the criteria are for imported courses
Steps to Reproduce
Expected Behavior
Actual Behavior
The link renders as link, but the link text is a uuidThe link renders as a link, with the expect text.See: https://ocw-studio-rc.odl.mit.edu/sites/peters-test-2021-09-29-1/type/page/ https://github.mit.edu/ocw-content-rc/pinch-test-2021-09-29-01/blob/main/content/pages/ocw-hugo-themes276.md https://ocw-draft-qa.global.ssl.fastly.net/courses/peters-test-2021-09-29-1/pages/ocw-hugo-themes276/
or:
https://ocw-studio-rc.odl.mit.edu/sites/peters-test-site-2021-11-01/type/page/ https://github.mit.edu/ocw-content-rc/peter-2021-11-01/blob/main/content/pages/link-embed-test.md https://ocw-draft-qa.global.ssl.fastly.net/courses/peters-test-site-2021-11-01/pages/link-embed-test/