Comparing version 0.4.2 to 0.6.0
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) | ||
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
2
31019
10
905
25
2
- Removedmarked@^13.0.3
- Removedmarked@13.0.3(transitive)