You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@freeman-lab I thought I could contribute here, but not sure exactly how, should I start by adding a base.md and maybe also a blocks.md?
Do you generate these *.md files automatically from the repo?
@freeman-lab Thanks!
I was able to npm install and changes conf.js and run npm run build
I tried to npm start and I get the following error in marked.js:1226
Uncaught TypeError: Cannot read property 'replace' of undefined
Please report this to https://github.com/chjj/marked.
Here is the code (!!!! marks line 1226):
/** * Marked */functionmarked(src,opt,callback){if(callback||typeofopt==='function'){if(!callback){callback=opt;opt=null;}opt=merge({},marked.defaults,opt||{});varhighlight=opt.highlight,tokens,pending,i=0;try{tokens=Lexer.lex(src,opt)}catch(e){returncallback(e);}pending=tokens.length;vardone=function(err){if(err){opt.highlight=highlight;returncallback(err);}varout;try{out=Parser.parse(tokens,opt);}catch(e){err=e;}opt.highlight=highlight;returnerr
? callback(err)
: callback(null,out);};if(!highlight||highlight.length<3){returndone();}deleteopt.highlight;if(!pending)returndone();for(;i<tokens.length;i++){(function(token){if(token.type!=='code'){return--pending||done();}returnhighlight(token.text,token.lang,function(err,code){if(err)returndone(err);if(code==null||code===token.text){return--pending||done();}token.text=code;token.escaped=true;--pending||done();});})(tokens[i]);}return;}try{if(opt)opt=merge({},marked.defaults,opt);returnParser.parse(Lexer.lex(src,opt),opt);}catch(e){e.message+='\nPlease report this to https://github.com/chjj/marked.';if((opt||marked.defaults).silent){return'<p>An error occured:</p><pre>'+escape(e.message+'',true)+'</pre>';}throwe;!!!!!!}}
Activity
boazmohar commentedon Jul 25, 2016
@freeman-lab I thought I could contribute here, but not sure exactly how, should I start by adding a base.md and maybe also a blocks.md?
Do you generate these *.md files automatically from the repo?
freeman-lab commentedon Jul 27, 2016
Just updated the README with more detailed info on how to build and where different components are sourced from, hopefully that helps!
boazmohar commentedon Jul 27, 2016
@freeman-lab Thanks!
I was able to
npm installand changesconf.jsand runnpm run buildI tried to
npm startand I get the following error in marked.js:1226Here is the code (!!!! marks line 1226):