
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
eleventy-plugin-markdown-shortcode
Advanced tools
An Eleventy plugin to render markdown as a shortcode within other templating engines.
Thanks to Bryan Robinson for the Eleventy Plugin tutorial
Available on npm.
npm install eleventy-plugin-markdown-shortcode --save
Open up your Eleventy config file (probably .eleventy.js
) and add the plugin:
const markdownShortcode = require("eleventy-plugin-markdown-shortcode");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(markdownShortcode);
};
This plugin is a universal shortcode, so it's available in the following templating engines:
In your templates, use the following syntax to grab the contents from any markdown file in your project path:
{% markdown '/path/to/markdown.md' %}
We handle (read: ignore) frontmatter with the markdown-it-front-matter plugin. You can include standard frontmatter like so:
---
title: Frontmatter test
---
## This is from the frontmatter test file
It should *not* include anything that says `title` or the frontmatter dashes.
And the plugin will skip the frontmatter, as long as it's valid
You can also pass in markdown-it configuration like so:
eleventyConfig.addPlugin(markdownShortcode, {
html: true,
linkify: true,
});
Read the live demo source code
Having problems? File an issue on GitHub
FAQs
Eleventy plugin to add a markdown shortcode
The npm package eleventy-plugin-markdown-shortcode receives a total of 54 weekly downloads. As such, eleventy-plugin-markdown-shortcode popularity was classified as not popular.
We found that eleventy-plugin-markdown-shortcode 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.