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.
highlightjs-macaulay2
Advanced tools
Readme
Macaulay2 is a software system devoted to supporting research in algebraic geometry and commutative algebra.
highlight.js is a JavaScript syntax highlighter with language auto-detection and zero dependencies.
Include the Highlight.js library in your webpage or Node app, then load this module.
Load the module after loading Highlight.js. Use the minified version found in the dist
directory. This module is just a CDN build of the language, so it will register itself as the JavaScript is loaded.
<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/macaulay2.min.js"></script>
<script type="text/javascript">hljs.highlightAll();</script>
<script type="text/javascript"
src="https://unpkg.com/highlightjs-macaulay2/dist/macaulay2.min.js"></script>
If you're using Node / Webpack / Rollup / Browserify, etc., require the language module, then register it with Highlight.js.
var hljs = require('highlight.js');
var macaulay2 = require('highlightjs-macaulay2');
hljs.registerLanguage("macaulay2", macaulay2);
hljs.highlightAll();
To build dist/macaulay2.min.js
yourself, run:
npm run build
Or, if you have already cloned the highlight.js repository:
npm run build -- HLJSDIR=/path/to/highlight.js
To build a minimal version, dist/highlight.js
, bundling highlight.js, the
Macaulay2 language, and the default highlight.js style (without the background
color), run:
npm install
npm run bundle
To update the Macaulay2 language keywords, e.g., after a new release of Macaulay2, run:
npm run update
Note that you must have Macaulay2 installed for this to work. If you have already cloned the Macaulay2 repository:
npm run update -- M2DIR=/path/to/M2
To run the test suite, run:
npm run test
Or, as above, if you already have the highlight.js repository cloned:
npm run test -- HLJSDIR=/path/to/highlight.js
Distributed under the BSD 3-Clause License. See LICENSE
for more information.
Highlight.js is also released under the BSD 3-Clause License.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b my-branch
).git commit -m 'my changes'
).git push origin my-branch
).FAQs
highlight.js syntax definition for Macaulay2
The npm package highlightjs-macaulay2 receives a total of 48 weekly downloads. As such, highlightjs-macaulay2 popularity was classified as not popular.
We found that highlightjs-macaulay2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.