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
There is tons of improvements that landed on CM 5 in recent months.
Closer to CommonMark (esp. lists!) and keeps getting closer;
there was a fix to multiplexed markdown/latex;
etc...
Recent CodeMirror can't be used as-is from submodule — has src/*.js files using require(); to get a combined browser-suitable lib/codemirror.js, would need to use npm module, or run codemirror's build step, or something like that.
I guess it's time to move to npm (revive #109)...
I've toyed with ideas of npm-as-git-submodule gateway. Didn't find anything ready, not gonna shave this yak this time :) cf. rawdep plan#8
GitHub pages will no longer work :-(. This was friendly to forks, but the Heroku button is good enough for that.
gh-pages could still be used as a deploy target, but that loses much of the appeal for me.
No, CDNs are unacceptable due to leakage of secret URL in Referer header.
Neither Referrer-Policy header, referrerpolicy attribute nor rel=noreferrer have bulletproof support.
Activity
cben commentedon Sep 8, 2015
Example bug that currently exists and is fixed with CodeMirror master:
[http://mathdown.net/?doc=bTMM6DtiBuk]
cben commentedon Nov 24, 2015
There is tons of improvements that landed on CM 5 in recent months.
Closer to CommonMark (esp. lists!) and keeps getting closer;
there was a fix to multiplexed markdown/latex;
etc...
cben commentedon May 5, 2018
Recent CodeMirror can't be used as-is from submodule — has src/*.js files using
require(); to get a combined browser-suitable lib/codemirror.js, would need to use npm module, or run codemirror's build step, or something like that.I guess it's time to move to npm (revive #109)...
Immediate plan to make progress:
npm installnecessary before opening local index.html works.cben commentedon May 5, 2018
Another idea I've considered is getting CodeMirror and MathJax from a CDN, eg. cdnjs / jsDelivr.
integrityfield in package-lock.json, but apparently not exactly related?cben commentedon Jun 27, 2018
No, CDNs are unacceptable due to leakage of secret URL in Referer header.
Neither Referrer-Policy header, referrerpolicy attribute nor rel=noreferrer have bulletproof support.
cben commentedon Jan 22, 2021
I've started using my stop-gap CodeMirror fork where I push builds, which allows GitHub pages to keep working — see #180.
But I should just get on with the times & switch to Netlify, which can run
npm install(and I believe does support submodules).Currently mathdown running on it https://elastic-liskov-92f696.netlify.app/.
Netlify is sweet in many ways, deploys preview envs on PRs, supports IPv6 (#121)...