
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
Leonidas is a Markdown Extention powered by React and Javascript
Leonidas serves to add CSS features like color, background-color to your Markdown.
It has support for HTML, CSS and even Basic Javascript
It even supports forms, data binding, and even API usage.
Simply install it with this command
npm i leonidas
Write that and you're ready to go!
To Import Leonidas, use the following code
import Leonidas from "leonidas";
function App() {
return (
<div className="App">
<Leonidas text={"@(fontSize:10vw) # Hello World!"} />
</div>
);
}
export default App;
To Add a property, just type @(your-property-name:your-value)
All CSS properties are supported and should have the same names. However, names with hyphens, like background-color become backgroundColor, and margin-left becomes marginLeft. Otherwise it should be the same
All CSS Units are supported
However, the default unit is rem instead of the default pixel. Everything is Responsive by default
Modules Supported are:
rehype-raw :
-(add:html)-(remove:html).rehype-sanitize :
-(add:sanitize)-(remove:sanitize)rehype-katex :
-(add:katex)-(remove:katex)remark-gfm :
-(add:ttu)-(remove:ttu)remark-math :
-(add:math)-(remove:math)View the Template source here. There are a wide number of templates which make your job easier
import Leonidas from "leonidas";
function App() {
return (
<div className="App">
<Leonidas text={`
@(color:lightblue)
@(textAlign:center)
@(fontKerning:none)
@(fontWeight:500)
@(letterSpacing:10px)
@(outline: 5px solid white)
@(textShadow: 2px 5px magenta)
@(transform: skewY(-10deg)
@(zoom:1.2)
@(marginBottom:100px)
# Leonidas!`} />
</div>
);
}

import Leonidas from "leonidas";
function App() {
return (
<div className="App">
<Leonidas text={`
@(borderLeft:10px solid black)
@(fontSize:10vw)
@(color:black)
@(fontKerning:none)
# Image

# Link
[Link to Picture](https://images.pexels.com/photos/326055/pexels-photo-326055.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=350&w=140)
# Email
<youremail@gmail.com>
`} />
</div>
);
}

View the Github Repo here This Website was Developed by me, Lakshya Jain, a 13 year old asian, so you know it's going to be good 😅
Happy Hacking 😊!!
FAQs
Markdown of the 21st century
The npm package leonidas receives a total of 2 weekly downloads. As such, leonidas popularity was classified as not popular.
We found that leonidas demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.