verbose / verb

HEADS UP! Verb is going though a major transition, we've completely refactored everything from the ground up. If you're interested, please see the dev branch.
MIT License
469 stars 32 forks source link

Keep Markdown reference-style links in output #70

Open AndersDJohnson opened 9 years ago

AndersDJohnson commented 9 years ago

Could we keep reference-style links in Markdown input in the Markdown output?

jonschlinkert commented 9 years ago

yes, you would need to disable the markdown formatting plugin. when I get a chance I'll look at verb to make sure this is (easily) possible

fwiw, if you want to use a different markdown formatter, I published two different libs for this, one based on remarkable - this is the one used by verb and it resolves reflinks, and a more naive one that uses regex.

AndersDJohnson commented 9 years ago

@jonschlinkert Thanks.

I've found one way to do this is adding the following to my verbfile.js:

var verb = require('verb');
verb.disable('dest:format plugin');

I haven't found how to substitute for different format plugins yet.

I ask because it seems by default nested lists are formatting with ~ for some items, which appears to not be supported by GitHub Flavored Markdown, nor apparently is it a part of CommonMark (http://spec.commonmark.org/0.19/#list-items). I'd submit a PR to fix that if I could find the source.

jonschlinkert commented 9 years ago

default nested lists are formatting with ~

That code is here, pr would be great

AndersDJohnson commented 9 years ago

I've reopened this for two reasons:

  1. jonschlinkert/list-item#1 was only part of the issue - I haven't decided yet if I still want to try to address the reference link output.
  2. Since jonschlinkert/list-item#1 bumped to 1.0.x, it may not have propagated here yet - pending investigation.
AndersDJohnson commented 9 years ago

Update on (2) from my previous comment: jonschlinkert/list-item#1 with 1.0.x should now have propagated to this project via jonschlinkert/markdown-utils#2 as 0.7.1.