
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
Zero-configuration script to display Markdown documents as static HTML pages
Gumdrop is designed to be an easy to use, standalone script that can generate websites and documentations written in Markdown. It dinamically loads all its dependencies from a CDN (including the Markdown parser) and does not require any configuration or initialization.
Gumdrop does not require installation you just have to load it into an HTML document with a script tag.
<script src="https://cdn.jsdelivr.net/npm/gumdrop@4"></script>
To create a static website with Markdown all you need to to is to create a HTML template (index.html) on your file server and add Gumdrop as an external script file.
<main></main>
<script src="path/to/gumdrop.js">
Be aware, that you have to serve your files via
http/httpsprotocol, as thefileprotocol does not support fetch requests.
Markdown files in the pages folder can be loaded. Gumdrop watches the hash fragment of the URL and loads the corresponding Markdown file from the pages folder. The parsed Markdown files get rendered in the <main> HTML node if present, in body otherwise. The default file that gets loaded if no file is specified is pages/index.md. To create a link to another file in the pages folder simply create a link with its name prefixed by #!/.
[Link to about.md](#!/about)
Static resources (e.g. images) can be loaded from any folder that is served by your file server, paths are relative to index.html. Error pages for various HTTP errors can be placed in the errors folder. Each file should be named according to the HTTP error code it represents (e.g. errors/404.md).
Additional data can be specified for your documents in a YAML Front Matter. You can access this data in any of your Markdown documents with mustache templates.
You can also use separate files to store data and link these resource files to a document in the front matter. Resource files can use YAML (default), JSON or Markdown type. Any value in a document's front matter that is annotated with the !file type is considered a file resource. File paths starting with a leading / are relative to index.html, if the leading / is missing then the data folder is assumed as the resource location. If no file type (extension) is given then the .yaml extension is assumed. For .md resource files the returned value will be the rendered Markdown document.
# data/todo.yaml
todos:
- title: First todo
text: Complete your first assignment
completed: true
- title: YAML
text: Learn more about YAML Front Matters
completed: false
---
todos: !file todo.yaml
---
{{#todos}}
- **{{title}}**: {{text}} {{#completed}}(✔){{/completed}}
{{/todos}}
Fenced code blocks are automatically processed by Prism.js. Languages supported are the default languages in the Prism.js bundle. For syntax highlighting you have to include a Prism.js style in your index.html.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1/themes/prism.css" />
You can use Gumdrop with GitHub Pages as it can serve as a static file server. To prevent GitHub Pages from trying to transform your site with Jekyll add an empty .nojekyll file to the root of your site.
All ideas, recommendations, bug reports, pull requests are welcome. :smile:
FAQs
Zero-configuration script to display Markdown documents as static HTML pages
The npm package gumdrop receives a total of 7 weekly downloads. As such, gumdrop popularity was classified as not popular.
We found that gumdrop 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.