Use Node.js MultiMarkdown in Metalsmith.
Inspired by metalsmith-markdown by segment.io
Use Node.js MultiMarkdown in Metalsmith.
License: MIT License
Use Node.js MultiMarkdown in Metalsmith.
Inspired by metalsmith-markdown by segment.io
Receive the following error when attempting to install on Windows 10.0.10586:
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--save-dev" "metalsmith-multimarkdown"
npm ERR! node v4.4.1
npm ERR! npm v3.8.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: make preinstall
npm ERR! Exit status 1
$ npm i -S metalsmith-multimarkdown
npm WARN package.json [email protected] No README data
|
[email protected] preinstall /Users/dmarr/projects/dmarr.io/node_modules/metalsmith-multimarkdown/node_modules/mmd
./bin/preinstall.sh
Cloning into 'MultiMarkdown-4'...
remote: Counting objects: 2797, done.
remote: Total 2797 (delta 0), reused 0 (delta 0), pack-reused 2797
Receiving objects: 100% (2797/2797), 4.50 MiB | 3.85 MiB/s, done.
Resolving deltas: 100% (1945/1945), done.
Checking connectivity... done.
Note: checking out 'fe8c93b74e9a254bf494d8e488fd6f6728c4a99a'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b
Submodule 'MarkdownTest' (https://github.com/fletcher/MMD-Test-Suite.git) registered for path 'MarkdownTest'
Submodule 'Support' (https://github.com/fletcher/MMD-Support.git) registered for path 'Support'
Submodule 'cheat-sheet' (https://github.com/fletcher/human-markdown-reference.git) registered for path 'cheat-sheet'
Submodule 'greg' (https://github.com/nddrylliog/greg.git) registered for path 'greg'
Cloning into 'MarkdownTest'...
remote: Counting objects: 2501, done.
remote: Total 2501 (delta 0), reused 0 (delta 0), pack-reused 2501
Receiving objects: 100% (2501/2501), 659.22 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1691/1691), done.
Checking connectivity... done.
Submodule path 'MarkdownTest': checked out '30fcf99a044966fd0730e13db9080648ca3d57fe'
Cloning into 'Support'...
remote: Counting objects: 338, done.
remote: Total 338 (delta 0), reused 0 (delta 0), pack-reused 338
Receiving objects: 100% (338/338), 64.66 KiB | 0 bytes/s, done.
Resolving deltas: 100% (167/167), done.
Checking connectivity... done.
Submodule path 'Support': checked out '685c95cf39a0db0c7e1067dfcf5dd2ad27dba08f'
Cloning into 'cheat-sheet'...
remote: Counting objects: 260, done.
remote: Total 260 (delta 0), reused 0 (delta 0), pack-reused 260
Receiving objects: 100% (260/260), 374.29 KiB | 0 bytes/s, done.
Resolving deltas: 100% (119/119), done.
Checking connectivity... done.
Submodule path 'cheat-sheet': checked out 'c23d807fa54eae684d319a14436bb56a3fb2ed9e'
Cloning into 'greg'...
remote: Counting objects: 435, done.
remote: Total 435 (delta 0), reused 0 (delta 0), pack-reused 435
Receiving objects: 100% (435/435), 197.23 KiB | 0 bytes/s, done.
Resolving deltas: 100% (214/214), done.
Checking connectivity... done.
Submodule path 'greg': checked out '3f11f56baa966677106e1468fe086e5e778a19a7'
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o multimarkdown.o multimarkdown.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o parse_utilities.o parse_utilities.c
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C greg
cc -g -Wall -O3 -DNDEBUG -c -o greg.o greg.c
cc -g -Wall -O3 -DNDEBUG -c -o tree.o tree.c
cc -g -Wall -O3 -DNDEBUG -c -o compile.o compile.c
cc -g -Wall -O3 -DNDEBUG -o greg-new greg.o tree.o compile.o
mv greg-new greg
greg/greg -o parser.c parser.leg
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o parser.o parser.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o GLibFacade.o GLibFacade.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o writer.o writer.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o text.o text.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o html.o html.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o latex.o latex.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o memoir.o memoir.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o beamer.o beamer.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o opml.o opml.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o odf.o odf.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o critic.o critic.c
cc -c -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o rng.o rng.c
cc -fPIC -Wall -O3 -include GLibFacade.h -include parser.h -I ./ -D MD_USE_GET_OPT=1 -D_GNU_SOURCE -o multimarkdown multimarkdown.o parse_utilities.o parser.o GLibFacade.o writer.o text.o html.o latex.o memoir.o beamer.o opml.o odf.o critic.o rng.o
./enumsToPerl.pl libMultiMarkdown.h enumMap.txt
CXX(target) Release/obj.target/mmd/src/mmd.o
In file included from ../src/mmd.cc:6:
../src/convert.hpp:9:29: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
Handle Convert(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/dmarr/.node-gyp/2.5.0/deps/v8/include/v8.h:134:7: note: 'v8::internal::Arguments' declared
here
class Arguments;
^
In file included from ../src/mmd.cc:7:
../src/extract-metadata-value.hpp:7:42: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
Handle ExtractMetadataValue(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/dmarr/.node-gyp/2.5.0/deps/v8/include/v8.h:134:7: note: 'v8::internal::Arguments' declared
here
class Arguments;
^
In file included from ../src/mmd.cc:8:
../src/extract-metadata-keys.hpp:9:41: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
Handle ExtractMetadataKeys(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/dmarr/.node-gyp/2.5.0/deps/v8/include/v8.h:134:7: note: 'v8::internal::Arguments' declared
here
class Arguments;
^
../src/mmd.cc:14:35: error: cannot initialize a parameter of type 'v8::Isolate ' with an lvalue of
type 'Handlev8::Value (const v8::internal::Arguments &)'
FunctionTemplate::New(Convert)->GetFunction());
^~~~~~~
/Users/dmarr/.node-gyp/2.5.0/deps/v8/include/v8.h:3871:16: note: passing argument to parameter
'isolate' here
Isolate isolate,
^
../src/mmd.cc:13:25: error: no member named 'NewSymbol' in 'v8::String'
target->Set(String::NewSymbol("convert"),
~~~~~~~~^
../src/mmd.cc:17:35: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of
type 'Handlev8::Value (const v8::internal::Arguments &)'
FunctionTemplate::New(ExtractMetadataKeys)->GetFunction());
^~~~~~~~~~~~~~~~~~~
/Users/dmarr/.node-gyp/2.5.0/deps/v8/include/v8.h:3871:16: note: passing argument to parameter
'isolate' here
Isolate* isolate,
^
../src/mmd.cc:16:25: error: no member named 'NewSymbol' in 'v8::String'
target->Set(String::NewSymbol("extractMetadataKeys"),
~~~~~~~~^
../src/mmd.cc:20:35: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of
type 'Handlev8::Value (const v8::internal::Arguments &)'
FunctionTemplate::New(ExtractMetadataValue)->GetFunction());
^~~~~~~~~~~~~~~~~~~~
/Users/dmarr/.node-gyp/2.5.0/deps/v8/include/v8.h:3871:16: note: passing argument to parameter
'isolate' here
Isolate* isolate,
^
../src/mmd.cc:19:25: error: no member named 'NewSymbol' in 'v8::String'
target->Set(String::NewSymbol("extractMetadataValue"),
~~~~~~~~^
9 errors generated.
make: *** [Release/obj.target/mmd/src/mmd.o] Error 1
I uncommented CFLAGS for -fPIC support and bumped the mmd version if you are interested.
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.