Skip to content

Commit

Permalink
Comply with eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Dec 2, 2020
1 parent 1eff1d1 commit fc7e33f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/RenderHTML.js
Expand Up @@ -29,9 +29,10 @@ const EXTRA_FONTS = [
* Compute images maximum width from the available screen width. This function
* is used by the HTML component in the default renderer for img tags to scale
* down images that would otherwise overflow horizontally.
*
*
* @param {number} contentWidth - The content width provided to the HTML
* component.
* @returns {number} The minimum between contentWidth and MAX_IMG_DIMENSIONS
*/
function computeImagesMaxWidth(contentWidth) {
return Math.min(MAX_IMG_DIMENSIONS, contentWidth);
Expand Down Expand Up @@ -59,9 +60,7 @@ function AnchorRenderer({tnode, key, style}) {
}

function CodeRenderer({
key,
style,
TDefaultRenderer, ...defaultRendererProps
key, style, TDefaultRenderer, ...defaultRendererProps
}) {
// We split wrapper and inner styles
// "boxModelStyle" corresponds to border, margin, padding and backgroundColor
Expand Down

0 comments on commit fc7e33f

Please sign in to comment.