-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Markdown): filter styles from video #2954
Conversation
`video`s with an `src` will be rendered by our Video component, otherwise they'll render as stated. | ||
|
||
<video src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm" title="video" /> | ||
`video`s with an `src` or a `source` video file will be rendered by our Video component, otherwise they'll render the original code. Videos with a `style` prop or another restricted prop will render their original code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if removing the style prop works this will need to change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
barring any weird QA discoveries this looks good to me!
renderView({ text: table }); | ||
expect(document.querySelectorAll('div.tableWrapper table').length).toEqual( | ||
1 | ||
); | ||
}); | ||
|
||
it('Skips rendering custom tables in markdown when skipProcessing.table is true', () => { | ||
jest.spyOn(console, 'error').mockImplementation(jest.fn()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tried a few different ways to format the Markdown here and it all errors, can come back to the tables later
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
Overview
Enables source tags from Video and filters out
video
s with a style propPR Checklist
Testing Instructions
PR Links and Envs