Skip to content

Question related using cloudflare served stylesheet vs katex npm package's stylesheet #29

Description

@mudassirgithub

As per README.md the expected behaviour is to add cloudflare served stylesheet link in head as

<head>
	<link
	    href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css"
            rel="stylesheet"
	/>
</head>

my questions are :

  1. instead of defining the stylesheet in head, can i add katex npm package to my code and import stylesheet defined in its dist folder ? something like this
import Latex from "react-latex";
import "katex/dist/katex.min.css";

const MathRender = ({ src }) => {
	return <Latex>{src}</Latex>;
};

export default MathRender;
  1. if i can add it, then whats the difference between the both ?

Project Details:

web app built with create-react-app

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions