Skip to content

Any way to change the style of the html? #16

@ViDanMaster

Description

@ViDanMaster

I have this code:

`import React from 'react';
import { View } from 'react-native';
import { MathJaxSvg } from 'react-native-mathjax-html-to-svg';

const MathJaxSvgHtml = ({ feladat, className }) => {
return (

{<html lang="hu"><head><style>${css}</style></head><body><div class='${className}'><p style="display: inline;">${feladat}</p></div></body></html>}

);
};

const css = html{ margin: 0; user-select: none; hyphens: auto; overflow: hidden; } body{ font-family: Quicksand; font-weight: normal; font-style: normal; } .kerdes{ font-size: 6vw; text-indent: 7.5vw; } .kerdes-preview{ font-size: 6vw; text-align: center; };

export default MathJaxSvgHtml;`

In this code, adding the css style won't do anything, is there any way I can make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions