tatsy / markdown-it-imsize

markdown-it plugin for size-specified image markups.
48 stars 93 forks source link

looks like there is no bower package for it #2

Closed Nedudi closed 9 years ago

Nedudi commented 9 years ago

thank you for this plugin, I just found that

 bower ENOTFOUND     Package markdown-it-imsize not found
tatsy commented 9 years ago

@Nedudi Thank you for the message, I forgot to register the module to bower...

Now I have registered, and bower install works.

Nedudi commented 9 years ago

Thanks! But.. still looks like it does not work like other markdown-it-... plugins as AMD-module I am using requirejs with other modules like markdown-it-sup, markdown-it-sup, markdown-it-mark,... Thank you for your work, I migrated from marked to markdown-it, because it's mush more flexible. I hope I can also take part doing few modules for markdown-it in near future

tatsy commented 9 years ago

@Nedudi I'm sorry to be late for the reply...

The problem was the dependency image-size of uses some dynamic require paths like the code below.

var libpath = process.env.TEST_COV ? '../lib-cov/' : './lib/';
var detector = require(libpath + 'detector');

because browserify cannot develop this kind of dynamic requires.

There are some choices to solve this problem, I think.

I 'm now trying to fix this problem, so please wait for a moment.

Sorry for your inconvenience...

Nedudi commented 9 years ago

Thanks a lot! That would be awesome

tatsy commented 9 years ago

Thank you for your waiting.

As long as I tested in my local environment, v1.1.4 will work properly with RequireJS.

I added an example to use markdown-it-imsize with RequireJS in README.md.

Please refer it for the detail :smiley: