mayo / metalsmith-markdownit Goto Github PK
View Code? Open in Web Editor NEWThis project forked from metalsmith/markdown
A Metalsmith plugin to convert markdown files. – This plugin is up for adoption.
This project forked from metalsmith/markdown
A Metalsmith plugin to convert markdown files. – This plugin is up for adoption.
When I create a page, and try calling that collection with handlebars, for example:
{{#each collections.posts}}
<h1>{{this.title}}</h1>
<article>{{this.contents}}</article>
{{/each}}
It prints everything with html, so the page literally shows
Blog post
<p>my content</p>
Any thoughts on how to fix this?
How can I use markdown-it plugins (i.e. footnotes, mark, or emoji) w/ this metalsmith plugin?
Hi,
I am trying to use this with the markdown-it-footnote plugin. The following build.js (as suggested in the readme), does not work:
var Metalsmith = require('metalsmith');
var layouts = require('metalsmith-layouts');
var markdown = require('metalsmith-markdownit');
var sass = require('metalsmith-sass');
Metalsmith(__dirname)
//.use(layouts('handlebars'))
.use(markdown('default', { footnote: true }))
.use(sass({ outputDir: 'css' }))
.build(function(err) {
if (err) {
throw err;
}
});
This however, does:
var Metalsmith = require('metalsmith');
var layouts = require('metalsmith-layouts');
var markdown = require('metalsmith-markdownit');
var sass = require('metalsmith-sass');
var footnote = require('markdown-it-footnote');
var md = markdown('default', {
footnote: true
});
md.parser.use(footnote);
Metalsmith(__dirname)
.use(md)
.use(sass({ outputDir: 'css' }))
.build(function(err) {
if (err) {
throw err;
}
});
Can you help me figure out whats going on there?
MIT requires to include a license text in every product that uses your software, but you don't have any license file.
Is it possible to use plugins via the Metalsmith CLI? Nothing I'm trying appears to work, though I'm sure I'm just missing something.
The version of "debug" ("~2.2.0") has a known vulnerability.
Changing it to "^2.2.0" (or "^2.6.9") should do the trick.
I'm trying to change the default 'html' output extension through this option:
.use(markdown('commonmark', {
plugin: {
extension: 'njk'
}
}))
but the output is still .html
I am using it wrong?
Hello.
I wanted to use one plugin option (namely the extension
option) and nothing happened. Checking the copy of the plugin in my node_modules
directory, I realised it did not match the master branch version, and there was no handling of plugin options at all.
I tried to update from NPM, but I have the latest version ; 0.4.0. Then, I found something strange. The plugin in the NPM package is correctly labeled 0.4.0, but its code matches the one in the 0.4.0 tag, where the version is... 0.3.0.
In fine, the handling of plugin parameters seems to never have been released, and the existing version numbers are disturbing. Could it be possible to release a new version with all the up-to-date features?
Thanks for your work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.