This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
Releases: nuxt-community/nuxtent-module
Releases · nuxt-community/nuxtent-module
Nuxt 1.4.0^ compatibility!
Nuxtent is finally compatible with Nuxt 1.0.0! (Thanks to @joostdecock for initiating this, and to @apmontgomery, @cesasol, and @derevandal for the help!)
1.2.1
-
fixed incompatibilities with Linux and Windows (closes #124 #128)
-
Merged new parser API to allow more powerful plugin usage. (#119, thanks to @arrkiin for the work and patience)
There are three ways to configure the parser:
extend
the default options passed to the parser.- Add
plugins
to the parser. customize
the parser after it was created.
Example usage:
// nuxtent.config.js
const Prism = require('prismjs')
const externalLinks = require('markdown-it-link-attributes')
const emoji = require('markdown-it-emoji')
const twemoji = require('twemoji')
module.exports = {
parsers: {
md: {
extend(config) {
config.highlight = (code, lang) => {
return `<pre class="language-${lang}"><code class="language-${lang}">${Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup)}</code></pre>`
}
},
plugins: [
emoji,
[ externalLinks, { target: '_blank', rel: 'noopener' } ]
],
customize(parser) {
parser.linkify.tlds('onion')
parser.linkify.add(... custom code to recognize and handle twitter handles ...)
parser.renderer.rules['emoji'] = (token, idx) => {
return twemoji.parse(token[idx].content);
}
}
}
},
...
css: [
'prismjs/themes/prism-coy.css'
]
}
1.1.0
1.1.0 (2017-10-22)
Features
- config add possibility to declare nuxtent options
api
key as a function
given theisStatic
parameter to adjust Axios options when usingnuxt generate
, fixes #92
{
content: {
page: '/_slug',
permalink: '/:year/:slug',
generate: ['get', 'getAll']
},
api: function(isStatic) {
return {
browserBaseURL: isStatic ? 'http://production-url.com' : ''
}
}
}
-
config all nuxtent options present in
api
key are now forwarded toaxios
-
module allow
.yml
file extension for content files (a6b240a), closes #69
Bug Fixes
1.0.2
1.0.1
1.0.0
1.0.0 (2017-09-25)
Bug Fixes
- module: fix "dependency not found ~\content" (#78) (9866b7d)
- module: remove automatic content permalink prefixing (8ff853d)
Chores
- package: remove
nuxtent
binary (845aa8d)
BREAKING CHANGES
- module: verify your content permalinks, possibly add the missing content type prefix
- package: replace
nuxtent generate
bynuxt generate
in your project's package.json scripts
0.2.80
Static Markdown components!
You can now use markdown components with npm run generate
!
Other fixes/features:
- Added linter (by @medfreeman)
- Added e2e tests (by @medfreeman)
- Separated Markdown Component and Request Content Plugins (by @medfreeman)
- Made
baseURL
empty by default. (Fixes #53 by @suhogrozdje)
And added @medfreeman and @suhogrozdje as contributors. 💯