New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nuemark

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuemark - npm Package Compare versions

Comparing version 0.4.2 to 0.6.0

src/parse-blocks.js

24

index.js
import { renderLines } from './src/render.js'
import { parseDocument } from './src/parse-document.js'
import { renderLines } from './src/render-blocks.js'
export { parseInline as renderInline } from 'marked'
const EOL = /\r\n|\r|\n/
// returns { html, meta, sections, headings, links }
export function nuemark(str, opts) {
return renderLines(str.split(/\r\n|\r|\n/), opts)
export function nuedoc(str, opts) {
return parseDocument(str.split(EOL), opts)
}
// returns HTML
export function nuemarkdown(str, opts) {
return nuemark(str, opts).html
export function nuemark(str, opts) {
return renderLines(str.split(EOL), opts)
}
// returns { meta, sections, headings, links }
export { parsePage } from './src/parse.js'
export { renderPage } from './src/render.js'
/* utilities */
export { renderInline } from './src/render-inline.js'
export { parseSize } from './src/render-tag.js'
export { elem } from './src/render-blocks.js'
{
"name": "nuemark",
"version": "0.4.2",
"description": "Markdown dialect for rich, interactive web content",
"version": "0.6.0",
"description": "Markdown flavour for rich, interactive websites",
"homepage": "https://nuejs.org",

@@ -19,3 +19,2 @@ "license": "MIT",

"js-yaml": "^4.1.0",
"marked": "^13.0.3",
"nue-glow": "latest"

@@ -22,0 +21,0 @@ },

# Nuemark
Nuemark is a Markdown dialect for rich, interactive web pages. It extends basic Markdown with sections, grids, stacked layouts, responsive images, videos, code blocks, tabs, and more. All your content, from simple blog entries to rich landing pages is editable by non-technical people. The versatile syntax allows you to build complex landing pages comparable to what you can create with online authoring tools like **Framer** or **WebFlow**.
# Markdown for rich, interactive websites
Nuemark is a custom Markdown parser developed specifically for Nue's content-first development approach. It extends basic Markdown with sections, grids, stacked layouts, responsive images, videos, code blocks, accordions, tabs, and more. It allows you to build rich landing pages with nothing but content and modern CSS.
### Links
* [What is Nuemark?](https://nuejs.org/blog/introducing-nuemark/)
* [User guide](https://nuejs.org/docs/content.html)
* [Tag reference](https://nuejs.org/docs/tags.html)
* [HTML output](https://nuejs.org/docs/page-layout.html)
<a href="https://nuejs.org/">
<img src="https://nuejs.org/img/content-files-big.png" width="900">
</a>
### Links
### How it looks
* [Syntax and semantics](https://nuejs.org/docs/content-syntax.html)
* [Tag reference](https://nuejs.org/docs/content-tags.html)
- - -
<a href="https://nuejs.org/blog/introducing-nuemark/">
<img src="https://nuejs.org/img/nuemark-content-big.png" width="800"></a>
### Contributing
Please see [contributing.md](/CONTRIBUTING.md)
Please see [CONTRIBUTING.md](/CONTRIBUTING.md)

@@ -30,2 +25,1 @@

Please see [GitHub discussions](https://github.com/nuejs/nue/discussions)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc