
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@fileverse-dev/md2slides
Advanced tools
Convert Markdown to HTML / PDF slides with customizeable pagination and styles. Standardized for compatibility with most editors.
Convert Markdown to HTML / PDF slides with customizeable pagination and styles. Standardized for compatibility with most editors.
Download the package below or use the app directly: ddocs.new (live 12/12/24)
ddocs.new is a privacy preserving and decentralized alternative to gDocs created by @fileverse.
Quick examples:
npm install @fileverse-dev/md2slides
import { convertMarkdownToHTML } from '@fileverse-dev/md2slides';
const markdown = `
# Slide 1
This is the first slide
===
# Slide 2
This is the second slide
`;
const html = convertMarkdownToHTML(markdown);
The convertMarkdownToHTML
function accepts two parameters:
markdown
: Your markdown content (required)options
: Configuration object (optional)type Options = {
preserveNewlines: boolean; // Preserve line breaks in the output
sanitize: boolean; // Sanitize HTML input
maxCharsPerSlide: number; // Maximum characters per slide
maxWordsPerSlide: number; // Maximum words per slide
maxLinesPerSlide: number; // Maximum lines per slide
};
Default options:
{
preserveNewlines: true,
sanitize: true,
maxCharsPerSlide: 1000,
maxWordsPerSlide: 250,
maxLinesPerSlide: 7,
}
The library includes optional default styles that you can import:
@import '@fileverse-dev/md2slides/styles';
<link rel="stylesheet" href="md2slides.css"/>
For plain HTML/JavaScript projects:
npm run build
<script src="dist/index.min.js"></script>
<link rel="stylesheet" href="dist/md2slides.css"/>
md2slides
object:const html = window.md2slides.convertMarkdownToHTML(`
# My Presentation
First slide content
===
## Second Slide
- Point 1
- Point 2
`);
document.getElementById('slides').innerHTML = html;
H1 = Always on one slide (Title slide)
H2 = Always starts a slide, until the next H2 (Acts as a page breaker)
H3 = Normal slide text (Paragraph text)
If the content doesn’t fit the container, it continues to the next slide
Images = maintaining the ratio of the original image and resizing to fit
If one page break, contains only one image, the image takes up the full slide
If there is an image with H2, H3 the image has a fixed side and placement
Page breaker = Separates content into separate slides based on the break
Roadmap & open issues:
We will be improving on this package and UI in the coming weeks based on people’s feedback. We plan on focusing on the following items first and have some open issues for which we encourage contributions:
Acknowledgments:
This repository is inspired by earlier work of @vbuterin’s available here
FAQs
Convert Markdown to HTML / PDF slides with customizeable pagination and styles. Standardized for compatibility with most editors.
The npm package @fileverse-dev/md2slides receives a total of 18 weekly downloads. As such, @fileverse-dev/md2slides popularity was classified as not popular.
We found that @fileverse-dev/md2slides demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.