
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.