Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
magicbook-katex
Advanced tools
Readme
This plugin allows you to write math equations via latex math expressions and automatically render them in the browser with the Katex math library and in PDF as straight up MathML. We chose to use Katex over Mathjax as it's faster, smaller, and supports bundling alongside other libraries.
First install the NPM package, either in your package.json
file in your book repo, or by running the following.
npm i magicbook-katex
Just add the plugin to your config.
{
"addPlugins" : ["magicbook-katex"]
}
Then write some content with math markup. Here's an example with an inline and block math equations in your markdown.
This is an inline equation: $$5 + 5$$. The following is a block equation:
$$
5 + 5
$$
If you're writing in HTML, the same file would look like this:
<p>This is an inline equation: <span data-type="equation">5 + 5</span>. The following is a block equation:</p>
<div data-type="equation">
5 + 5
</div>
The required JavaScript, stylesheets and fonts will automatically be added to the build assets during the build process.
FAQs
Katex plugin for magicbook
The npm package magicbook-katex receives a total of 5 weekly downloads. As such, magicbook-katex popularity was classified as not popular.
We found that magicbook-katex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.