Giter Site home page Giter Site logo

mayo / metalsmith-markdownit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metalsmith/markdown

21.0 5.0 8.0 39 KB

A Metalsmith plugin to convert markdown files. – This plugin is up for adoption.

Makefile 1.33% JavaScript 98.67%
metalsmith-plugin markdown

metalsmith-markdownit's People

Contributors

akselinurmio avatar altano avatar colophonemes avatar gaggle avatar ianstormtaylor avatar mattly avatar mayo avatar santiagogil avatar steveluscher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

metalsmith-markdownit's Issues

Markdown is showing as html with handlebars?

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?

Not adding plugin correctly

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?

use metalsmith-markdownit with markdown-it plugins

As asked by @bishless, it could be useful to be able to user metalsmith-markdownit with markdown-it plugins.

I can see that you proposed a workaround in #1, but do you plan to add a real option to use plugins?

It could be great!

At least, a full example would be welcome!

Provide a LICENSE File

MIT requires to include a license text in every product that uses your software, but you don't have any license file.

Using markdown-it-plugins with CLI

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.

Mismatch between the repository and NPM versions

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.