Open depfryer opened 7 years ago
Hi @depfryer san, wow it is sounds good to me! I want to get feedback from others.
Hi, @depfryer. Chances are links between notes help to realize this feature request. I mean, the linked code snippet will be displayed as like an OGP in the preview mode.
@asmsuechan it's for a link not a compiled view if you want to see the code you need to clic on or i don't uderstand ><
ha yes I found a way for use it \o/ in browser/lib/markdown.js L23
highlight: function (str, lang) {
if (lang === 'flowchart') {
return `<pre class="flowchart">${str}</pre>`
}
if (lang === 'sequence') {
return `<pre class="sequence">${str}</pre>`
}
return '<pre class="code">' +
createGutter(str) +
'<code class="' + lang + '">' +
str +
'</code></pre>'
}
just add a case lang == snippet (for exemple) who return
if(lang == 'snippets'){
return '<pre class="code">' +
createGutter(note.Getcontent()) +
'<code class="' + note.getMode() + '">' +
note.getContent() +
'</code></pre>'
}
}
but i don't know how to create the GetContent and getMode ><
and for slide https://github.com/partageit/markdown-to-slides with a button convert
This would be really nice for more modular notes and reusing certain snippets.
A potential addition would be to allow parameters for start and end line. Thus adding the ability to only show a section of code.
why cannot combine a snippet code like a iframe for split the code and the explain of code
the snippet
the md
the result
for detect the "route" use tag or folder + link
thanks for you answer 😄
Ha yes and a question a implementation of a slider ? 😲