Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Keep Markdown reference-style links in output #70

Open
AndersDJohnson opened this issue Jun 25, 2015 · 5 comments
Open

Keep Markdown reference-style links in output #70

AndersDJohnson opened this issue Jun 25, 2015 · 5 comments
Labels

Comments

@AndersDJohnson
Copy link
Member

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

@jonschlinkert
Copy link
Member

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
Copy link
Member Author

@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
Copy link
Member

default nested lists are formatting with ~

That code is here, pr would be great

AndersDJohnson pushed a commit to AndersDJohnson/list-item that referenced this issue Jul 4, 2015
AndersDJohnson pushed a commit to AndersDJohnson/list-item that referenced this issue Jul 4, 2015
AndersDJohnson pushed a commit to AndersDJohnson/list-item that referenced this issue Jul 4, 2015
AndersDJohnson pushed a commit to AndersDJohnson/list-item that referenced this issue Jul 4, 2015
AndersDJohnson pushed a commit to jonschlinkert/list-item that referenced this issue Jul 8, 2015
Remove tilde (~) from list chars. Closes verbose/verb#70.
@AndersDJohnson AndersDJohnson reopened this Aug 8, 2015
@AndersDJohnson
Copy link
Member Author

I've reopened this for two reasons:

  1. Remove tilde (~) from list chars. Closes verbose/verb#70. 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 Remove tilde (~) from list chars. Closes verbose/verb#70. jonschlinkert/list-item#1 bumped to 1.0.x, it may not have propagated here yet - pending investigation.

@AndersDJohnson
Copy link
Member Author

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants