GithubHelp home page GithubHelp logo

kelvinsjk / mathlified Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 5.0 4.16 MB

Exploring mathematics in the digital age

Home Page: mdsvex-math-starter.vercel.app

License: MIT License

JavaScript 5.64% TypeScript 74.95% CSS 2.01% HTML 1.82% Svelte 15.56% TeX 0.03%

mathlified's Issues

Repeating math equations while using Mathlified

I started using mathlified for my blog and when I use {@html inlineMath} or {@html displayMath}. The equations rendered on the blog are repeated twice. The one rendered with the package and other with normal typefont. Is there any fix for this?

Thank you in advance
Screenshot 2023-05-22 154952

Svelte Katex shows the original and the rendered version

When using the svelte-katex, there is an issue where you can see both the original and rendered version of the expression.
I could resolve it by importing this, but I think it might be better if the package would handle this part.

<svelte:head>
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
</svelte:head>

Mathlifier: allow config file for defaults

Currently the default options are {wrap: true} for math() and {overflowAuto: false} for display() along with {throwOnError: false} for both.

If a user wants a different set of defaults, they will have to create an options object and pass it into every function call.

It will be useful if the library can support a config file for a project-wide set of defaults. This could be especially helpful for things like macros.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.