├── LICENSE ├── Plugin.php ├── README.md └── lib ├── LICENSE ├── ai1.js ├── hypermd-image-error.png ├── hypermd-light.css └── hypermd.css /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Jad 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Plugin.php: -------------------------------------------------------------------------------- 1 | HyperMD for Typecho 6 | * 7 | * @package HyperMD 8 | * @author journey.ad 9 | * @version 0.1 10 | * @link https://github.com/journey-ad/HyperMD-Typecho-Plugin 11 | */ 12 | class HyperMD_Plugin implements Typecho_Plugin_Interface 13 | { 14 | 15 | protected static $VERSION = '0.1'; 16 | /** 17 | * 激活插件方法,如果激活失败,直接抛出异常 18 | * 19 | * @access public 20 | * @return void 21 | * @throws Typecho_Plugin_Exception 22 | */ 23 | public static function activate() 24 | { 25 | Typecho_Plugin::factory('admin/write-post.php')->richEditor = array('HyperMD_Plugin', 'Editor'); 26 | Typecho_Plugin::factory('admin/write-page.php')->richEditor = array('HyperMD_Plugin', 'Editor'); 27 | } 28 | 29 | /** 30 | * 禁用插件方法,如果禁用失败,直接抛出异常 31 | * 32 | * @static 33 | * @access public 34 | * @return void 35 | * @throws Typecho_Plugin_Exception 36 | */ 37 | public static function deactivate(){} 38 | 39 | /** 40 | * 获取插件配置面板 41 | * 42 | * @access public 43 | * @param Typecho_Widget_Helper_Form $form 配置面板 44 | * @return void 45 | */ 46 | public static function config(Typecho_Widget_Helper_Form $form) 47 | {} 48 | 49 | /** 50 | * 个人用户的配置面板 51 | * 52 | * @access public 53 | * @param Typecho_Widget_Helper_Form $form 54 | * @return void 55 | */ 56 | public static function personalConfig(Typecho_Widget_Helper_Form $form) 57 | {} 58 | 59 | /** 60 | * 插入编辑器 61 | */ 62 | public static function Editor() 63 | { 64 | $VERSION = self::$VERSION; 65 | $hypermdUrl = Helper::options()->pluginUrl.'/HyperMD/lib/hypermd.css?v='.$VERSION; 66 | $hypermd_lightUrl = Helper::options()->pluginUrl.'/HyperMD/lib/hypermd-light.css?v='.$VERSION; 67 | $ai1 = Helper::options()->pluginUrl.'/HyperMD/lib/ai1.js?v='.$VERSION; 68 | $libUrl = Helper::options()->pluginUrl.'/HyperMD/lib/'; 69 | 70 | echo << 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 101 | 102 | 103 | 134 | 156 | EOF; 157 | } 158 | } 159 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HyperMD 2 | 3 | **Markdown编辑器 [HyperMD](https://github.com/laobubu/HyperMD) for Typecho** 4 | 5 | ![HyperMD.png](https://img.imjad.cn/images/2018/06/14/HyperMD.png) 6 | 7 | ## 介绍 8 | 9 | - 所见即所得; 10 | - 可通过拖放、粘贴快速上传图片; 11 | 12 | ## 使用 13 | 14 | 点击 ```Download ZIP``` 按钮,解压,将 HyperMD-Typecho-Plugin-master 重命名为 HyperMD ,之后上传到你博客中的 /usr/plugins 目录,在后台启用即可 15 | 16 | ## 感谢 17 | 18 | [HyperMD](https://github.com/laobubu/HyperMD) 19 | 20 | ## LICENSE 21 | 22 | MIT © [journey.ad](https://github.com/journey-ad/) 23 | -------------------------------------------------------------------------------- /lib/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2017-2018 by laobubu 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /lib/ai1.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * HyperMD, copyright (c) by laobubu 3 | * Distributed under an MIT license: http://laobubu.net/HyperMD/LICENSE 4 | * 5 | * Break the Wall between writing and preview, in a Markdown Editor. 6 | * 7 | * HyperMD makes Markdown editor on web WYSIWYG, based on CodeMirror 8 | * 9 | * Homepage: http://laobubu.net/HyperMD/ 10 | * Issues: https://github.com/laobubu/HyperMD/issues 11 | */ 12 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("codemirror"),require("codemirror/addon/fold/foldcode"),require("codemirror/addon/fold/foldgutter"),require("codemirror/addon/fold/markdown-fold"),require("codemirror/addon/edit/closebrackets"),require("codemirror/lib/codemirror.css"),require("codemirror/addon/fold/foldgutter.css"),require("./theme/hypermd-light.css"),require("codemirror/mode/markdown/markdown"),require("./mode/hypermd.css"),require("codemirror/mode/meta")):"function"==typeof define&&define.amd?define(["exports","codemirror","codemirror/addon/fold/foldcode","codemirror/addon/fold/foldgutter","codemirror/addon/fold/markdown-fold","codemirror/addon/edit/closebrackets","codemirror/lib/codemirror.css","codemirror/addon/fold/foldgutter.css","./theme/hypermd-light.css","codemirror/mode/markdown/markdown","./mode/hypermd.css","codemirror/mode/meta"],t):t(e.HyperMD={},e.CodeMirror)}(this,function(e,q){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),i=1;i=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewFrom&&t=n.lineN&&tn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}var n=Object.freeze({findViewIndex:l,findViewForLine:L,mapFromLineView:w}),U=function(e){this.cm=e};function x(e,t,n){var r,i=t.line,o={line:i,ch:0},a={line:i,ch:t.ch},l="function"==typeof n&&n,s=!l&&new RegExp("(?:^|\\s)"+n+"(?:\\s|$)"),d=e.getLineTokens(i);for(r=0;r=t.ch);r++);if(r===d.length)return null;for(var c=r;ci)l=o.length;else if(r.line=r.ch);l++);for(;l=r.ch);l++);for(;lr);else for(;a=n.ch);a++);for(a>=i.length&&(a=i.length-1);0<=a;a--){var s=i[a];if("function"==typeof e?e(s):e.test(s.type)){o=s;break}}if(!o&&l){var d=this.cm,c=Math.min(n?n.line:d.lastLine(),r-1),h=d.firstLine();for(r=c+1;!o&&h<=--r;){d.getLineHandle(r);if(i=d.getLineTokens(r),a=0,n&&r===n.line)for(;a=n.ch);a++);for(a>=i.length&&(a=i.length-1);0<=a;a--){s=i[a];if("function"==typeof e?e(s):e.test(s.type)){o=s;break}}}}return o?{lineNo:r,token:o,i_token:a}:null},U.prototype.expandRange=function(t,e){var n,r=this.cm;"function"==typeof t?n=t:("string"==typeof t&&(t=new RegExp("(?:^|\\s)"+t+"(?:\\s|$)")),n=function(e){return!!e&&t.test(e.type||"")});for(var i={lineNo:this.lineNo,i_token:this.i_token,token:this.lineTokens[this.i_token]},o=Object.assign({},i),a=!1,l=this.lineTokens,s=this.i_token;!a;){for(s>=l.length&&(s=l.length-1);0<=s;s--){var d=l[s];if(!n(d)){a=!0;break}i.i_token=s,i.token=d}if(a||!(e&&i.lineNo>r.firstLine()))break;s=(l=r.getLineTokens(--i.lineNo)).length-1}for(a=!1,l=this.lineTokens,s=this.i_token;!a;){for(s<0&&(s=0);st&&(i=0));for(var o=this.lineTokens;it);i++);this.i_token=i},U.prototype.getToken=function(e){return"number"!=typeof e&&(e=this.i_token),this.lineTokens[e]},U.prototype.getTokenType=function(e){"number"!=typeof e&&(e=this.i_token);var t=this.lineTokens[e];return t&&t.type||""};function u(r,i,o){return function(e){if(e.hmd||(e.hmd={}),!e.hmd[r]){var t=new i(e);if(e.hmd[r]=t,o)for(var n in o)t[n]=o[n];return t}return e.hmd[r]}}var f=Object.freeze({Addon:function(e){},Getter:u}),P=/[^\\][$|]/,j=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,$=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,K=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,B=/^\.{0,2}\/[^\>\s]+/,X=/^\s*[^\|].*?\|.*[^|]\s*$/,W=/^\s*[^\|].*\|/,Y=/^\s*\|[^\|]+\|.+\|\s*$/,G=/^\s*\|/,V={};function Z(e){e.hmdTable=0,e.hmdTableColumns=[],e.hmdTableID=null,e.hmdTableCol=e.hmdTableRow=0}V[1]="hmd-barelink",V[6]="hmd-barelink2",V[2]="hmd-barelink hmd-footref",V[4]="hmd-footnote line-HyperMD-footnote",V[7]="hmd-footref2";var Q=/^\s+((\d+[).]|[-*+])\s+)?/;q.defineMode("hypermd",function(o,e){var N={front_matter:"yaml",math:!0,table:!0,toc:!0,orgModeMarkup:!0,fencedCodeBlockHighlighting:!0,name:"markdown",highlightFormatting:!0,taskLists:!0,strikethrough:!0,emoji:!0,tokenTypeOverrides:{hr:"line-HyperMD-hr hr",list1:"list-1",list2:"list-2",list3:"list-3",code:"inline-code",gitHubSpice:!1}};Object.assign(N,e),N.name="markdown";var R={htmlBlock:null},E=q.getMode(o,N),t=Object.assign({},E);function a(e,t){var n=t.hmdInnerExitChecker(e,t),r=t.hmdInnerStyle,i=(!n||!n.skipInnerMode)&&t.hmdInnerMode.token(e,t.hmdInnerState)||"";return r&&(i+=" "+r),n&&(n.style&&(i+=" "+n.style),n.endPos&&(e.pos=n.endPos),t.hmdInnerExitChecker=null,t.hmdInnerMode=null,t.hmdInnerState=null,t.hmdOverride=null),i.trim()||null}function _(n){return{token:function(e){var t=e.string.indexOf(n,e.start);return-1===t?e.skipToEnd():0===t?e.pos+=n.length:(e.pos=t,"\\"===e.string.charAt(t-1)&&e.pos++),null}}}function I(n,r){return r||(r={}),function(e,t){return e.string.substr(e.start,n.length)===n?(r.endPos=e.start+n.length,r):null}}function F(e,t,n,r){if("string"==typeof n&&(n=q.getMode(o,n)),!(n&&"null"!==n.name||(n="endTag"in r?_(r.endTag):r.fallbackMode)))throw new Error("no mode");t.hmdInnerExitChecker="endTag"in r?I(r.endTag):r.exitChecker,t.hmdInnerStyle=r.style,t.hmdInnerMode=n,t.hmdOverride=a,t.hmdInnerState=q.startState(n);var i=r.style||"";return r.skipFirstToken||(i+=" "+n.token(e,t.hmdInnerState)),i.trim()}return t.startState=function(){var e=E.startState();return Z(e),e.hmdOverride=null,e.hmdInnerExitChecker=null,e.hmdInnerMode=null,e.hmdLinkType=0,e.hmdNextMaybe=N.front_matter?1:0,e.hmdNextState=null,e.hmdNextStyle=null,e.hmdNextPos=null,e},t.copyState=function(e){for(var t=E.copyState(e),n=0,r=["hmdLinkType","hmdNextMaybe","hmdTable","hmdTableID","hmdTableCol","hmdTableRow","hmdOverride","hmdInnerMode","hmdInnerStyle","hmdInnerExitChecker","hmdNextPos","hmdNextState","hmdNextStyle"];n/.test(e.string)||(c+=" line-HyperMD-quote-lazy")),0==e.start&&(n=p.match(/^\s+/)))return e.pos=n[0].length,(c+=" hmd-indent-in-quote").trim();/^>\s+$/.test(p)&&">"!=e.peek()&&(e.pos=e.start+1,p=">",t.hmdOverride=function(e,t){return e.match(Q),t.hmdOverride=null,"hmd-indent-in-quote line-HyperMD-quote line-HyperMD-quote-"+t.quote})}var v=(t.listStack[t.listStack.length-1]||0)+3,y=o&&/^\s+$/.test(p)&&(!1!==t.list||e.indentation()<=v),b=t.list&&/formatting-list/.test(c);if(b||y&&(!1!==t.list||e.match(j,!1))){var k=t.listStack&&t.listStack.length||0;if(y){if(e.match(j,!1))!1===t.list&&k++;else{for(;0":e.match("?")?D="?>":e.match("![CDATA[")&&(D="]]>"),null!=D)return F(e,t,null,{endTag:D,style:(c+" comment hmd-cdata-html").trim()})}}return c.trim()||null},t},"hypermd"),q.defineMIME("text/x-hypermd","hypermd");var g=Object.freeze({});function v(e,t,n,r){var i=new XMLHttpRequest,o=new FormData;for(var a in t)o.append(a,t[a]);i.onreadystatechange=function(){if(4==this.readyState){var e=i.responseText;try{e=JSON.parse(i.responseText)}catch(e){}/^20\d/.test(i.status+"")?n(e,null):n(null,e)}},i.open(r||"POST",e,!0),i.send(o)}var y=function(e,i){var o=0,t=document.createElement("div");t.className="HyperMD-insertFile-dfh-placeholder",i.setPlaceholder(t);for(var a=[],l="undefined"!=typeof URL,n=0;nt);i++);return n},N.prototype.rescan=function(){var e=this.cm,o=this.cache={};e.eachLine(function(e){var t=e.text,n=/^(?:>\s+)*>?\s{0,3}\[([^\]]+)\]:\s*(.+)$/.exec(t);if(n){var r=n[1].trim().toLowerCase(),i=n[2];o[r]||(o[r]=[]),o[r].push({line:e.lineNo(),content:i})}})},N.prototype.resolve=function(e,t){var n,r=/^(?:[\w-]+\:\/*|\/\/)[^\/]+/,i=/\/[^\/]+(?:\/+\.?)*$/;if(!e)return e;if(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e))return"mailto:"+e;var o="";if(!(t=t||this.baseURI)||r.test(e))return e;for((n=t.match(r))&&(o=n[0],t=t.slice(o.length));n=e.match(/^(\.{1,2})([\/\\]+)/);)e=e.slice(n[0].length),".."==n[1]&&(t=t.replace(i,""));return"/"===e.charAt(0)&&o?e=o+e:(/\/$/.test(t)||(t+="/"),e=o+t+e),e};var R=u("ReadLink",N,A),E=Object.freeze({splitLink:C,Extensions:O,defaultOption:A,suggestedOption:D,ReadLink:N,getAddon:R}),_="function"==typeof marked?marked:function(e){return"
"+(e=e.replace(/&/g,"&").replace(/"};function I(e,t){return t?_(t):null}var F={enabled:!1,xOffset:10,convertor:I},J={enabled:!0};o.hmdHover=J,q.defineOption("hmdHover",F,function(e,t){t&&"boolean"!=typeof t?"function"==typeof t&&(t={enabled:!0,convertor:t}):t={enabled:!!t};var n=ne(e);for(var r in F)n[r]=r in t?t[r]:F[r]});var ee=function(e){var t=this;this.cm=e,new s(function(){n.addEventListener("mouseenter",a,!0)},function(){n.removeEventListener("mouseenter",a,!0),t.hideInfo()}).bind(this,"enabled",!0);var n=e.display.lineDiv;this.lineDiv=n;var r=document.createElement("div"),i=document.createElement("div"),o=document.createElement("div");r.setAttribute("style","position:absolute;z-index:99"),r.setAttribute("class","HyperMD-hover"),r.setAttribute("cm-ignore-events","true"),i.setAttribute("class","HyperMD-hover-content"),r.appendChild(i),o.setAttribute("class","HyperMD-hover-indicator"),r.appendChild(o),this.tooltipDiv=r,this.tooltipContentDiv=i,this.tooltipIndicator=o;var a=this.mouseenter.bind(this)};ee.prototype.mouseenter=function(e){var t,n=this.cm,r=e.target,i=r.className;if(!(r==this.tooltipDiv||r.compareDocumentPosition&&8==(8&r.compareDocumentPosition(this.tooltipDiv))))if("SPAN"===r.nodeName&&(t=i.match(/(?:^|\s)cm-(hmd-barelink2?|hmd-footref2)(?:\s|$)/))){var o=n.coordsChar({left:e.clientX,top:e.clientY},"window"),a=null,l=null,s=x(n,o,t[1]);s&&(a=(a=n.getRange(s.from,s.to)).slice(1,-1))&&(l=n.hmdReadLink(a,o.line)||null);var d=(this.convertor||I)(a,l&&l.content||null);d?this.showInfo(d,r):this.hideInfo()}else this.hideInfo()},ee.prototype.showInfo=function(e,t){var n=t.getBoundingClientRect(),r=this.lineDiv.getBoundingClientRect(),i=this.tooltipDiv,o=this.xOffset;this.tooltipContentDiv.innerHTML=e,i.style.left=n.left-r.left-o+"px",this.lineDiv.appendChild(i);var a=i.getBoundingClientRect();a.right>r.right&&(o=a.right-r.right,i.style.left=n.left-r.left-o+"px"),i.style.top=n.top-r.top-a.height+"px",this.tooltipIndicator.style.marginLeft=o+"px"},ee.prototype.hideInfo=function(){this.tooltipDiv.parentElement==this.lineDiv&&this.lineDiv.removeChild(this.tooltipDiv)};var te,ne=u("Hover",ee,F),re=Object.freeze({defaultConvertor:I,defaultOption:F,suggestedOption:J,Hover:ee,getAddon:ne}),ie=function(e,t){var n=e.text,r=e.type,i=e.url,o=e.pos;if("url"===r||"link"===r){var a=n.match(/\[[^\[\]]+\](?:\[\])?$/);a&&e.altKey?("[]"===(n=a[0]).slice(-2)&&(n=n.slice(0,-2)),r="footref"):(e.ctrlKey||e.altKey)&&i&&window.open(i,"_blank")}if("todo"===r){var l=x(t,o,"formatting-task"),s=l.from,d=l.to,c=t.getRange(s,d);c="[ ]"===c?"[x]":"[ ]",t.replaceRange(c,s,d)}if("footref"===r&&(e.ctrlKey||e.altKey)){var h=n.slice(1,-1),u=t.hmdReadLink(h,o.line);u&&(oe(t,u.line,o),t.setCursor({line:u.line,ch:0}))}},oe=(te=null,function(e,t,n){var r,i,o=function(e){if(-1==e.options.gutters.indexOf("HyperMD-goback"))return null;var t=document.createElement("div");t.className="HyperMD-goback-button",t.addEventListener("click",function(){e.setCursor(te.find()),e.clearGutter("HyperMD-goback"),te.clear(),te=null});var n=e.display.gutters.children;return n=(n=n[n.length-1]).offsetLeft+n.offsetWidth,t.style.width=n+"px",t.style.marginLeft=-n+"px",t}(e);o&&(o.innerHTML=n.line+1+"",r=e,i=n,te&&(r.clearGutter("HyperMD-goback"),te.clear()),te=r.setBookmark(i),e.setGutterMarker(t,"HyperMD-goback",o))}),ae={enabled:!1,handler:null},le={enabled:!0};o.hmdClick=le,q.defineOption("hmdClick",ae,function(e,t){t&&"boolean"!=typeof t?"function"==typeof t&&(t={enabled:!0,handler:t}):t={enabled:!!t};var n=de(e);for(var r in ae)n[r]=r in t?t[r]:ae[r]});var se=function(e){var T=this;this.cm=e,this._keyUp=function(e){var t=e.keyCode||e.which,n="";17==t&&(n="HyperMD-with-ctrl"),18==t&&(n="HyperMD-with-alt"),n||!T._hadAlt||e.altKey||(T._hadAlt=!1,n="HyperMD-with-alt"),n&&i(T.el,n)},this._keyDown=function(e){var t=e.keyCode||e.which,n="";17==t&&(n="HyperMD-with-ctrl"),18==t&&(n="HyperMD-with-alt"),18==t&&(T._hadAlt=!0),n&&r(T.el,n)},this._mouseUp=function(e){var t=T._cinfo;T.lineDiv.removeEventListener("mouseup",T._mouseUp,!1),5$/))||(d=c.match(/^\((.+)\)$/))||(d=[null,c]))&&(h=d[1]);h=l.hmdResolveURL(h)}else p.match(/\sformatting-task\s/)&&(g="todo",(s=x(l,u,"formatting-task")).to.ch=l.getLine(u.line).length,c=l.getRange(s.from,s.to),h=null);null!==g&&(T._cinfo={type:g,text:c,url:h,pos:u,button:t,clientX:n,clientY:r,ctrlKey:i,altKey:o,shiftKey:a},T.lineDiv.addEventListener("mouseup",T._mouseUp,!1))}},this.lineDiv=e.display.lineDiv;var t=this.el=e.getWrapperElement();new s(function(){T.lineDiv.addEventListener("mousedown",T._mouseDown,!1),t.addEventListener("keydown",T._keyDown,!1),t.addEventListener("keyup",T._keyUp,!1)},function(){T.lineDiv.removeEventListener("mousedown",T._mouseDown,!1),t.removeEventListener("keydown",T._keyDown,!1),t.removeEventListener("keyup",T._keyUp,!1)}).bind(this,"enabled",!0)},de=u("Click",se,ae),ce=Object.freeze({defaultClickHandler:ie,defaultOption:ae,suggestedOption:le,Click:se,getAddon:de}),he={enabled:!1,convertor:null},ue={enabled:!0};o.hmdPaste=ue,q.defineOption("hmdPaste",he,function(e,t){t&&"boolean"!=typeof t?"function"==typeof t&&(t={enabled:!0,convertor:t}):t={enabled:!!t};var n=ge(e);for(var r in he)n[r]=r in t?t[r]:he[r]});var fe,me,pe=function(e){var o=this;this.cm=e,this.pasteHandler=function(e,t){var n=t.clipboardData||window.clipboardData,r=o.convertor;if(r&&n&&-1!=n.types.indexOf("text/html")){var i=r(n.getData("text/html"));i&&(e.operation(e.replaceSelection.bind(e,i)),t.preventDefault())}},new s(function(){e.on("paste",o.pasteHandler)},function(){e.off("paste",o.pasteHandler)}).bind(this,"enabled",!0)},ge=u("Paste",pe,he),ve=Object.freeze({defaultOption:he,suggestedOption:ue,Paste:pe,getAddon:ge});(me=fe||(fe={})).OK="ok",me.CURSOR_INSIDE="ci",me.HAS_MARKERS="hm";var ye={image:function(e,t){var n=e.cm,r=/\bformatting-link-string\b/;if(/\bimage-marker\b/.test(t.type)&&"!"===t.string){var i=e.lineNo,o=e.findNext(r),a=e.findNext(r,o.i_token+1),l={line:i,ch:t.start},s={line:i,ch:a.token.end},d=e.requestRange(l,s);if(d===fe.OK){var c,h,u=n.getRange({line:i,ch:o.token.start+1},{line:i,ch:a.token.start});if("]"===a.token.string){var f=n.hmdReadLink(u,i);if(!f)return null;u=f.content}c=C(u).url,c=n.hmdResolveURL(c),h=n.getRange({line:i,ch:l.ch+2},{line:i,ch:o.token.start-1});var m=document.createElement("img"),p=n.markText(l,s,{collapsed:!0,replacedWith:m});return m.addEventListener("load",function(){m.classList.remove("hmd-image-loading"),p.changed()},!1),m.addEventListener("error",function(){m.classList.remove("hmd-image-loading"),m.classList.add("hmd-image-error"),p.changed()},!1),m.addEventListener("click",function(){return be(n,p)},!1),m.className="hmd-image hmd-image-loading",m.src=c,m.title=h,p}}return null},link:function(e,t){var n=e.cm,r=/\bformatting-link-string\b/;if("("===t.string&&r.test(t.type)&&(0===e.i_token||!/\bimage/.test(e.lineTokens[e.i_token-1].type))){var i=e.lineNo,o=e.findNext(function(e){return r.test(e.type)&&")"===e.string}),a={line:i,ch:t.start},l={line:i,ch:o.token.end},s=e.requestRange(a,l);if(s===fe.OK){var d=n.getRange(a,l),c=C(d.substr(1,d.length-2)),h=c.url,u=c.title,f=document.createElement("span");f.setAttribute("class","hmd-link-icon"),f.setAttribute("title",h+"\n"+u),f.setAttribute("data-url",h);var m=n.markText(a,l,{collapsed:!0,replacedWith:f});return f.addEventListener("click",function(){return be(n,m)},!1),m}}return null}};function be(t,n,r){t.operation(function(){var e=n.find().from;e={line:e.line,ch:e.ch+~~r},t.setCursor(e),t.focus(),n.clear()})}var ke={image:!1,link:!1,math:!1,html:!1,customFolders:{}},Te={image:!0,link:!0,math:!0,html:!1};o.hmdFold=Te,q.defineOption("hmdFold",ke,function(e,t){if(!t||"boolean"==typeof t){var n=!!t;for(var r in t={},ye)t[r]=n}var i=we(e);for(var o in ye)i.setBuiltinStatus(o,t[o]);"object"!=typeof t.customFolders&&(t.customFolders={});var a=[];for(var l in t.customFolders)t.customFolders.hasOwnProperty(l)&&(a.push(l),l in i.folded||(i.folded[l]=[]));i.customFolderTypes=a,i.startFold()});var Le=function(t){function e(e){var n=this;t.call(this,e),this.cm=e,this.ff_builtin={},this.folded={},this.startFold=h(this.startFoldImmediately.bind(this),100),this._quickFoldHint=[],e.on("changes",function(e,t){t.reduce(function(e,t){return Math.min(e,t.from.line)},e.lastLine());n.startFold()}),e.on("cursorActivity",function(e){n.startQuickFold()})}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.setBuiltinStatus=function(e,t){if(e in ye){var n=this.ff_builtin[e];n||(n=new s(this.startFold,this.clear.bind(this,e)),this.ff_builtin[e]=n),n.setBool(t)}},e.prototype.requestRange=function(e,t){var n=this.cm,r=q.cmpPos,i=n.getCursor(),o=n.findMarks(e,t),a=fe.OK;return 0!==o.length?a=fe.HAS_MARKERS:0<=r(i,e)&&r(i,t)<=0&&(a=fe.CURSOR_INSIDE),a!==fe.OK&&this._quickFoldHint.push(e.line),a},e.prototype.startFoldImmediately=function(e,t){var b=this,n=this.cm;e=e||n.firstLine(),t=(t||n.lastLine())+1,this._quickFoldHint=[],this.setPos(e,0,!0),n.operation(function(){return n.eachLine(e,t,function(e){var t=e.lineNo();if(!(tb.lineNo&&b.setPos(t,0);var n=new Array(e.text.length),r=e.markedSpans;if(r)for(var i=0;is);){var d=r[1],c=r[2];c&&/^['"]/.test(c)&&(c=c.slice(1,-1)),o.setAttribute(d,c),s=l.lastIndex}if("innerHTML"in o){var h=e.indexOf(">",s)+1,u=e.length;(r=new RegExp("\\s*$","i").exec(e))&&(u=r.index);var f=e.slice(h,u);f&&(o.innerHTML=f),m([o],function(e){var t=e.tagName.toLowerCase();"a"===t&&(e.getAttribute("target")||e.setAttribute("target","_blank"));var n={a:["href"],img:["src"],iframe:["src"]}[t];if(n)for(var r=0;r",isolatedTagName:/^(?:div|pre|form|table|iframe|ul|ol|input|textarea|p|summary|a)$/i},Pe={};o.hmdFoldHTML=Pe,q.defineOption("hmdFoldHTML",Fe,function(e,t){t?"function"==typeof t?t={checker:t}:"object"!=typeof t&&(console.warn("[HyperMD][FoldHTML] incorrect option value type"),t={}):t={};var n=$e(e);for(var r in Fe)n[r]=r in t?t[r]:Fe[r];!n.isolatedTagName||n.isolatedTagName instanceof RegExp||(console.error("[HyperMD][FoldHTML] option isolatedTagName only accepts RegExp"),n.isolatedTagName=Fe.isolatedTagName)});var je=function(e){this.cm=e};je.prototype.renderAndInsert=function(e,t,n,r){var i,o,a=this.cm,l=this.makeStub(),s=this.renderer(e,t,a),d=function(){return be(a,o)};if(!s)return null;if(l.addEventListener("click",d,!1),s.tagName.match(this.isolatedTagName||/^$/)||s.addEventListener("click",d,!1),r){var c=document.createElement("span");c.setAttribute("class","hmd-fold-html"),c.setAttribute("style","display: inline-block"),c.appendChild(l),c.appendChild(s),i=c,(h=p(s,function(e,t){var n=getComputedStyle(s),r=function(e){return n.getPropertyValue(e)},i=e<10||t<10||!/^relative|static$/i.test(r("position"))||!/^none$/i.test(r("float"));l.className=i?_e:"hmd-fold-html-stub hmd-fold-html-stub-omittable",o.changed()})).check(),setTimeout(function(){o.on("clear",function(){h.stop()})},0)}else{i=l;var h,u=a.addLineWidget(n.line,s,{above:!1,coverGutter:!1,noHScroll:!1,showIfHidden:!1}),f=function(){return l.className="hmd-fold-html-stub hmd-fold-html-stub-highlight"},m=function(){return l.className=_e};s.addEventListener("mouseenter",f,!1),s.addEventListener("mouseleave",m,!1),(h=p(s,function(){return u.changed()})).check(),setTimeout(function(){o.on("clear",function(){h.stop(),u.clear(),s.removeEventListener("mouseenter",f,!1),s.removeEventListener("mouseleave",m,!1)})},0)}return o=a.markText(t,n,{clearOnEnter:!0,replacedWith:i})},je.prototype.makeStub=function(){var e=document.createElement("span");return e.setAttribute("class",_e),e.textContent=this.stubText||"",e};var $e=u("FoldHTML",je,Fe),qe=Object.freeze({defaultChecker:Re,defaultRenderer:Ee,HTMLFolder:Ie,defaultOption:Fe,suggestedOption:Pe,FoldHTML:je,getAddon:$e}),ze={enabled:!1},Ue={enabled:!0};o.hmdTableAlign=Ue,q.defineOption("hmdTableAlign",ze,function(e,t){var n=!!t;n&&"boolean"!=typeof t||(t={enabled:n});var r=Be(e);for(var i in ze)r[i]=i in t?t[i]:ze[i]});var Ke=function(e){var p=this;this.cm=e,this.styleEl=document.createElement("style"),this.updateStyle=h(function(){if(p.enabled){var e=p.cm,t=p.measure(),n=p.makeCSS(t);n!==p._lastCSS&&(p.styleEl.textContent=p._lastCSS=n,setTimeout(function(){return d(e)},50))}},100),this._procLine=function(e,t,n){if(n.querySelector(".cm-hmd-table-sep")){for(var r=n.firstElementChild,i=Array.prototype.slice.call(r.childNodes,0),o=e.getStateAfter(t.lineNo()),a=o.hmdTableColumns,l=o.hmdTableID,s=2===o.hmdTable?-1:0,d=p.makeColumn(s,a[s]||"dummy",l),c=d.firstElementChild,h=0,u=i;ht.ch||c===o.length-1)&&(a=c);var u=h.type&&h.type.match(r);if(u){var f=u[1];if(f!==s){var m=l[l.length-1];if(m&&m[1]===f){if(l.pop(),-1!==a||h.end===t.ch){d.push(m[0],h);break}}else if(l.push([h,f]),-1!==a){d.push(h);var p=new RegExp("\\sformatting-"+f+"\\s");for(c+=1;c=o.length-1)for(var S=0,C=l;S[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,ht=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,ut=/[*+-]\s/,ft=/^(\s*)([*+-]\s|(\d+)([.)]))(\s*)/,mt=function(e){return/hmd-table-sep/.test(e.type)&&!/hmd-table-sep-dummy/.test(e.type)};function pt(e){if(e.getOption("disableInput"))return q.Pass;for(var t=[],n=0,r=e.listSelections();n\s*$/.test(s)||e.replaceRange("",{line:o.line,ch:0},{line:o.line,ch:o.ch+1}),t.push("\n");else{var m=u[1],p=u[5],g=!(ut.test(u[2])||0<=u[2].indexOf(">")),v=g?parseInt(u[3],10)+1+u[4]:u[2].replace("x"," ");t.push("\n"+m+v+p),g&&Tt(e,o)}}if(!d){var y=a?l.hmdTable:0;if(0!=y){if(!/^[\s\|]+$/.test(s)||o.line!==e.lastLine()&&e.getStateAfter(o.line+1).hmdTable===y){var b=z("  |  ",l.hmdTableColumns.length-1),k="\n";2===y&&(k+="| ",b+=" |"),0==l.hmdTableRow?e.setCursor({line:o.line+1,ch:e.getLine(o.line+1).length}):e.setCursor({line:o.line,ch:s.length}),e.replaceSelection(k),e.replaceSelection(b,"start")}else e.setCursor({line:o.line,ch:0}),e.replaceRange("\n",{line:o.line,ch:0},{line:o.line,ch:s.length});return void(d=!0)}if(a&&o.ch>=s.length&&!l.code&&!l.hmdInnerMode&&/^\|.+\|.+\|$/.test(s)){for(var T=e.getLineTokens(o.line),L="|",w="|",x=1;xv.ch&&" "===T.charAt(v.ch)&&v.ch++,y.ch>v.ch&&" "===T.charAt(y.ch-1)&&y.ch--,m(y.ch>v.ch?e.getRange(v,y):"")}else{var S=0===k.hmdTableRow?2:1;if(v.line+S>e.lastLine()||e.getStateAfter(v.line+S).hmdTable!=k.hmdTable){v.ch=y.ch=T.length;var C=z("  |  ",w.length-1);0===k.hmdTableRow&&(y.line=v.line+=1,y.ch=v.ch=e.getLine(v.line).length),L?(u("\n| "),f(C+" |")):(u("\n"),f(C.trimRight())),m("")}else{y.line=v.line+=S,l.setPos(v.line,0);var O=l.line.text,H=L&&l.findNext(/hmd-table-sep-dummy/,0),A=l.findNext(/hmd-table-sep/,H?H.i_token+1:1);v.ch=H?H.token.end:0,y.ch=A?A.token.start:O.length,y.ch>v.ch&&" "===O.charAt(v.ch)&&v.ch++,y.ch>v.ch&&" "===O.charAt(y.ch-1)&&y.ch--,m(y.ch>v.ch?e.getRange(v,y):"")}}}else if(0h.length)return;if(l.length=c&&g.substr(m.ch-c,c)===t?(d=!0,m.ch-=c):(s=!0,a[u]=t);else{l=!0,0=c&&m.line===p.line&&g.substr(m.ch-c,c)===t&&g.substr(p.ch,h)===n&&(d=!0,p.ch+=h,m.ch-=c,v=t+v+n),v.slice(0,c)===t&&v.slice(-h)===n?o[u]=v.slice(c,-h):o[u]=t+v+n}}d&&e.setSelections(i),s&&e.replaceSelections(a),l&&e.replaceSelections(o,"around")},createStyleToggler:kt,get keyMap(){return Lt}});e.Mode=g,e.InsertFile=S,e.ReadLink=E,e.Hover=re,e.Click=ce,e.Paste=ve,e.Fold=xe,e.FoldMath=Ne,e.FoldHTML=qe,e.TableAlign=Xe,e.ModeLoader=Ze,e.HideToken=it,e.CursorDebounce=dt,e.KeyMap=wt,e.Addon=f,e.FlipFlop=s,e.tryToRun=c,e.debounce=h,e.addClass=r,e.rmClass=i,e.contains=t,e.repeat=a,e.repeatStr=z,e.visitElements=m,e.watchSize=p,e.suggestedEditorConfig=o,e.fromTextArea=function(e,t){var n=Object.assign({},o,t);return q.fromTextArea(e,n)},e.switchToNormal=function(e,t){e.setOption("theme",t||"default"),e.setOption("hmdFold",!1),e.setOption("hmdHideToken",!1),e.setOption("hmdTableAlign",!1)},e.switchToHyperMD=function(e,t){e.setOption("theme",t||"hypermd-light"),e.setOption("hmdFold",!0),e.setOption("hmdHideToken",!0),e.setOption("hmdTableAlign",!0)},e.cm_internal=n,e.TokenSeeker=U,e.getEveryCharToken=function(e){var t=new Array(e.text.length),n=e.styles,r=0;if(n)for(var i=1;i .HyperMD-hover-content code, .CodeMirror.cm-s-hypermd-light span.cm-inline-code, .CodeMirror.cm-s-hypermd-light pre.HyperMD-codeblock, .CodeMirror.cm-s-hypermd-light span.cm-formatting-task, .CodeMirror.cm-s-hypermd-light span.cm-hmd-indent-in-quote, .CodeMirror.cm-s-hypermd-light span.cm-hmd-frontmatter, .CodeMirror.cm-s-hypermd-light span.cm-hmd-orgmode-markup, .CodeMirror.cm-s-hypermd-light span.cm-math, .CodeMirror.cm-s-hypermd-light span.hmd-fold-math-placeholder, .CodeMirror.cm-s-hypermd-light .CodeMirror-linewidget kbd,
 14 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html kbd {
 15 |   font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
 16 | }
 17 | .CodeMirror.cm-s-hypermd-light .CodeMirror-linewidget table,
 18 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html table {
 19 |   border-collapse: collapse;
 20 | }
 21 | .CodeMirror.cm-s-hypermd-light .CodeMirror-linewidget table td, .CodeMirror.cm-s-hypermd-light .CodeMirror-linewidget table th,
 22 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html table td,
 23 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html table th {
 24 |   padding: 10px;
 25 |   border: 1px solid #666;
 26 | }
 27 | .CodeMirror.cm-s-hypermd-light .CodeMirror-linewidget kbd,
 28 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html kbd {
 29 |   display: inline-block;
 30 |   padding: 3px 5px;
 31 |   font-size: 90%;
 32 |   line-height: 1em;
 33 |   background-color: #fafbfc;
 34 |   border: solid 1px #c6cbd1;
 35 |   border-bottom-color: #c6cbd1;
 36 |   border-bottom-color: #959da5;
 37 |   border-radius: 3px;
 38 |   box-shadow: inset 0 -1px 0 #959da5;
 39 |   vertical-align: baseline;
 40 | }
 41 | .CodeMirror.cm-s-hypermd-light .CodeMirror-linewidget a > img,
 42 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html a > img {
 43 |   border: 0;
 44 | }
 45 | .CodeMirror.cm-s-hypermd-light .cm-header, .CodeMirror.cm-s-hypermd-light .cm-strong {
 46 |   font-weight: 600;
 47 | }
 48 | .CodeMirror.cm-s-hypermd-light span.cm-quote {
 49 |   color: #666;
 50 | }
 51 | .CodeMirror.cm-s-hypermd-light span.cm-meta {
 52 |   color: #FF1717;
 53 | }
 54 | .CodeMirror.cm-s-hypermd-light span.cm-keyword {
 55 |   line-height: 1em;
 56 |   font-weight: bold;
 57 |   color: #7F0055;
 58 | }
 59 | .CodeMirror.cm-s-hypermd-light span.cm-atom {
 60 |   color: #219;
 61 | }
 62 | .CodeMirror.cm-s-hypermd-light span.cm-number {
 63 |   color: #164;
 64 | }
 65 | .CodeMirror.cm-s-hypermd-light span.cm-def {
 66 |   color: #00f;
 67 | }
 68 | .CodeMirror.cm-s-hypermd-light span.cm-variable {
 69 |   color: black;
 70 | }
 71 | .CodeMirror.cm-s-hypermd-light span.cm-variable-2 {
 72 |   color: #0000C0;
 73 | }
 74 | .CodeMirror.cm-s-hypermd-light span.cm-variable-3 {
 75 |   color: #0000C0;
 76 | }
 77 | .CodeMirror.cm-s-hypermd-light span.cm-property {
 78 |   color: black;
 79 | }
 80 | .CodeMirror.cm-s-hypermd-light span.cm-operator {
 81 |   color: black;
 82 | }
 83 | .CodeMirror.cm-s-hypermd-light span.cm-comment {
 84 |   color: #4F9F5F;
 85 | }
 86 | .CodeMirror.cm-s-hypermd-light span.cm-string {
 87 |   color: #2A00FF;
 88 | }
 89 | .CodeMirror.cm-s-hypermd-light span.cm-string-2 {
 90 |   color: #f50;
 91 | }
 92 | .CodeMirror.cm-s-hypermd-light span.cm-qualifier {
 93 |   color: #555;
 94 | }
 95 | .CodeMirror.cm-s-hypermd-light span.cm-builtin {
 96 |   color: #30a;
 97 | }
 98 | .CodeMirror.cm-s-hypermd-light span.cm-bracket {
 99 |   color: #cc7;
100 | }
101 | .CodeMirror.cm-s-hypermd-light span.cm-tag {
102 |   color: #170;
103 | }
104 | .CodeMirror.cm-s-hypermd-light span.cm-attribute {
105 |   color: #00c;
106 | }
107 | .CodeMirror.cm-s-hypermd-light span.cm-url {
108 |   color: #4af;
109 | }
110 | .CodeMirror.cm-s-hypermd-light span.cm-link {
111 |   color: #4078c0;
112 |   text-decoration: none;
113 | }
114 | .CodeMirror.cm-s-hypermd-light span.cm-link:hover {
115 |   text-decoration: underline;
116 | }
117 | .CodeMirror.cm-s-hypermd-light span.cm-error {
118 |   color: #f00;
119 | }
120 | .CodeMirror.cm-s-hypermd-light span.cm-math, .CodeMirror.cm-s-hypermd-light span.hmd-fold-math-placeholder {
121 |   font-style: italic;
122 |   background: rgba(255, 255, 238, 0.4);
123 | }
124 | .CodeMirror.cm-s-hypermd-light span.cm-formatting-math {
125 |   color: #CAA;
126 |   font-weight: inherit;
127 | }
128 | .CodeMirror.cm-s-hypermd-light .CodeMirror-activeline-background {
129 |   background: #e8f2ff;
130 | }
131 | .CodeMirror.cm-s-hypermd-light .CodeMirror-matchingbracket {
132 |   outline: 1px solid grey;
133 |   color: black !important;
134 | }
135 | .CodeMirror.cm-s-hypermd-light .CodeMirror-linenumber {
136 |   color: #ccc;
137 | }
138 | .CodeMirror.cm-s-hypermd-light .CodeMirror-gutters {
139 |   border-right: 10px solid #FFF;
140 |   padding-right: 5px;
141 | }
142 | .CodeMirror.cm-s-hypermd-light .CodeMirror-line {
143 |   padding: 0 5px;
144 | }
145 | .CodeMirror.cm-s-hypermd-light .CodeMirror-code {
146 |   padding-right: 10px;
147 | }
148 | .CodeMirror.cm-s-hypermd-light .CodeMirror-foldmarker {
149 |   display: inline-block;
150 |   vertical-align: middle;
151 | }
152 | .CodeMirror.cm-s-hypermd-light span.cm-hmd-toc {
153 |   font-size: 24pt;
154 |   color: #999;
155 | }
156 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-header-line:after, .CodeMirror.cm-s-hypermd-light pre.HyperMD-header.HyperMD-header-1:after, .CodeMirror.cm-s-hypermd-light pre.HyperMD-header.HyperMD-header-2:after {
157 |   display: block;
158 |   content: " ";
159 |   margin-top: 2px;
160 |   height: 1px;
161 |   background: #eee;
162 | }
163 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-header {
164 |   line-height: 1.5 !important;
165 |   font-family: inherit !important;
166 |   padding-left: 5px !important;
167 |   margin-left: 0 !important;
168 |   border-left: 0 !important;
169 |   color: #333;
170 | }
171 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-header > span > span:first-child {
172 |   margin-left: 0 !important;
173 | }
174 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-header.HyperMD-header-1 {
175 |   font-weight: 600;
176 |   font-size: 24pt;
177 | }
178 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-header.HyperMD-header-2 {
179 |   font-weight: 600;
180 |   font-size: 18pt;
181 | }
182 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-header.HyperMD-header-3 {
183 |   font-size: 14.4pt;
184 | }
185 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-header-line {
186 |   color: rgba(0, 0, 0, 0.3);
187 |   line-height: 8px;
188 | }
189 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-hr {
190 |   background: url("data:image/gif;base64,R0lGODlhAQACAIAAAOTq8kNWcCH5BAAAAAAALAAAAAABAAIAAAICDAoAOw==") repeat-x 0px center;
191 |   text-shadow: 0 0 2px #FFF;
192 | }
193 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote:before {
194 |   content: " ";
195 |   position: absolute;
196 |   left: 2px;
197 |   top: 0;
198 |   height: 100%;
199 |   background: url("data:image/gif;base64,R0lGODlhIAABAIABAOjo6P///yH5BAEAAAEALAAAAAAgAAEAAAIHhI8Yy+1cAAA7") 0 0;
200 |   background-size: 20px 1px;
201 | }
202 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-1 {
203 |   padding-left: 27px;
204 | }
205 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-1:before {
206 |   width: 20px;
207 | }
208 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-1.HyperMD-footnote {
209 |   padding-left: 67px;
210 | }
211 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-1 span.cm-formatting-quote {
212 |   transform: translateZ(0);
213 |   display: inline-block;
214 |   width: 20px;
215 | }
216 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-1 span.cm-formatting-quote:first-child {
217 |   margin-left: -20px;
218 | }
219 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-2 {
220 |   padding-left: 47px;
221 | }
222 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-2:before {
223 |   width: 40px;
224 | }
225 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-2.HyperMD-footnote {
226 |   padding-left: 87px;
227 | }
228 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-2 span.cm-formatting-quote {
229 |   transform: translateZ(0);
230 |   display: inline-block;
231 |   width: 20px;
232 | }
233 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-2 span.cm-formatting-quote:first-child {
234 |   margin-left: -40px;
235 | }
236 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-3 {
237 |   padding-left: 67px;
238 | }
239 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-3:before {
240 |   width: 60px;
241 | }
242 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-3.HyperMD-footnote {
243 |   padding-left: 107px;
244 | }
245 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-3 span.cm-formatting-quote {
246 |   transform: translateZ(0);
247 |   display: inline-block;
248 |   width: 20px;
249 | }
250 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-3 span.cm-formatting-quote:first-child {
251 |   margin-left: -60px;
252 | }
253 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-4 {
254 |   padding-left: 87px;
255 | }
256 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-4:before {
257 |   width: 80px;
258 | }
259 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-4.HyperMD-footnote {
260 |   padding-left: 127px;
261 | }
262 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-4 span.cm-formatting-quote {
263 |   transform: translateZ(0);
264 |   display: inline-block;
265 |   width: 20px;
266 | }
267 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-4 span.cm-formatting-quote:first-child {
268 |   margin-left: -80px;
269 | }
270 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-5 {
271 |   padding-left: 107px;
272 | }
273 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-5:before {
274 |   width: 100px;
275 | }
276 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-5.HyperMD-footnote {
277 |   padding-left: 147px;
278 | }
279 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-5 span.cm-formatting-quote {
280 |   transform: translateZ(0);
281 |   display: inline-block;
282 |   width: 20px;
283 | }
284 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-5 span.cm-formatting-quote:first-child {
285 |   margin-left: -100px;
286 | }
287 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-6 {
288 |   padding-left: 127px;
289 | }
290 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-6:before {
291 |   width: 120px;
292 | }
293 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-6.HyperMD-footnote {
294 |   padding-left: 167px;
295 | }
296 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-6 span.cm-formatting-quote {
297 |   transform: translateZ(0);
298 |   display: inline-block;
299 |   width: 20px;
300 | }
301 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-6 span.cm-formatting-quote:first-child {
302 |   margin-left: -120px;
303 | }
304 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-7 {
305 |   padding-left: 147px;
306 | }
307 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-7:before {
308 |   width: 140px;
309 | }
310 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-7.HyperMD-footnote {
311 |   padding-left: 187px;
312 | }
313 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-7 span.cm-formatting-quote {
314 |   transform: translateZ(0);
315 |   display: inline-block;
316 |   width: 20px;
317 | }
318 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-7 span.cm-formatting-quote:first-child {
319 |   margin-left: -140px;
320 | }
321 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-8 {
322 |   padding-left: 167px;
323 | }
324 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-8:before {
325 |   width: 160px;
326 | }
327 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-8.HyperMD-footnote {
328 |   padding-left: 207px;
329 | }
330 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-8 span.cm-formatting-quote {
331 |   transform: translateZ(0);
332 |   display: inline-block;
333 |   width: 20px;
334 | }
335 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-8 span.cm-formatting-quote:first-child {
336 |   margin-left: -160px;
337 | }
338 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-9 {
339 |   padding-left: 187px;
340 | }
341 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-9:before {
342 |   width: 180px;
343 | }
344 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-9.HyperMD-footnote {
345 |   padding-left: 227px;
346 | }
347 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-9 span.cm-formatting-quote {
348 |   transform: translateZ(0);
349 |   display: inline-block;
350 |   width: 20px;
351 | }
352 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-quote-9 span.cm-formatting-quote:first-child {
353 |   margin-left: -180px;
354 | }
355 | .CodeMirror.cm-s-hypermd-light span.cm-hmd-list-indent {
356 |   display: inline-block;
357 |   width: 30px;
358 |   text-align: right;
359 |   white-space: pre;
360 |   box-sizing: border-box;
361 |   border-right: 1px dashed #CCC;
362 |   overflow: hidden;
363 |   font-size: 0.5em;
364 |   line-height: 200%;
365 | }
366 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line > span > span:first-child {
367 |   margin-left: -60px;
368 | }
369 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line > span > span:first-child.cm-formatting-list, .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line.HyperMD-list-line-nobullet > span > span:first-child {
370 |   margin-left: -30px;
371 |   width: 30px;
372 | }
373 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line:not(.HyperMD-list-line-nobullet) {
374 |   padding-top: 0.3em;
375 | }
376 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-1 {
377 |   padding-left: 45px;
378 | }
379 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-2 {
380 |   padding-left: 75px;
381 | }
382 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-3 {
383 |   padding-left: 105px;
384 | }
385 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-4 {
386 |   padding-left: 135px;
387 | }
388 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-5 {
389 |   padding-left: 165px;
390 | }
391 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-6 {
392 |   padding-left: 195px;
393 | }
394 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-7 {
395 |   padding-left: 225px;
396 | }
397 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-8 {
398 |   padding-left: 255px;
399 | }
400 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-list-line-9 {
401 |   padding-left: 285px;
402 | }
403 | .CodeMirror.cm-s-hypermd-light span.cm-formatting-list {
404 |   text-align: right;
405 |   display: inline-block;
406 |   white-space: pre;
407 |   width: 30px;
408 |   font-family: "HyperMD-Bullets";
409 |   color: #666;
410 | }
411 | .CodeMirror.cm-s-hypermd-light span.cm-formatting-list.cm-list-2 {
412 |   text-shadow: 0 1px #666, 0 -1px #666, 1px 0 #666, -1px 0 #666;
413 |   color: #fff;
414 | }
415 | .CodeMirror.cm-s-hypermd-light span.cm-formatting-task {
416 |   white-space: pre;
417 |   display: inline-block;
418 |   height: 1em;
419 |   line-height: 1em;
420 |   min-width: 1em;
421 |   text-align: center;
422 |   vertical-align: middle;
423 |   background-repeat: no-repeat;
424 |   background-position: center 0;
425 |   cursor: pointer;
426 |   color: rgba(0, 0, 0, 0.5);
427 |   background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAwCAMAAAA8VkqRAAAAclBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACa4vOeAAAAJXRSTlMADcjpDswcLZOzsvOYBvWdbtvTX0D69+ORa1dRJCDtuaF7ZDkoQyuUXgAAAMhJREFUOMvt0reywjAUhOFjKxmcrgMZboL//V8Rm6GwkNUx0LClvhkVZ1fEZoqHqMwO7wuUSb0YxcJKxtLpxIt2SzJRykkQp5RgdAjaIKRJCEn6gWdA9OzRoqLVRscQnc9bdtXX/eyurOF7N3erLVDPwCGHxoVwamH1LwGUBfBbhrCvoLlMitL9DY8trLtJg7qoCj18VAN1OYE/YJBuDe1RJtBVo5wbqPb+GL5yWG1GLX0YZYw5iQ93yQ/yAHfZzu5qt/mxr97VFS15JGSVM0C6AAAAAElFTkSuQmCC");
428 |   background-size: 1em;
429 | }
430 | .CodeMirror.cm-s-hypermd-light span.cm-formatting-task.cm-property {
431 |   background-position-y: -1em;
432 | }
433 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-footnote {
434 |   font-size: 10.2pt;
435 |   padding-left: 45px;
436 | }
437 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-footnote > span > span:first-child {
438 |   margin-left: -40px;
439 | }
440 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-footnote span.cm-hmd-footnote {
441 |   color: #666;
442 |   cursor: text;
443 |   text-decoration: none;
444 | }
445 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-codeblock {
446 |   line-height: 1em;
447 |   font-size: 90%;
448 |   color: #922;
449 |   border-left: 1px solid #CCC;
450 |   border-right: 1px solid #CCC;
451 | }
452 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-codeblock span.cm-inline-code {
453 |   display: inherit;
454 |   background-color: inherit;
455 |   border: inherit;
456 |   padding: inherit;
457 | }
458 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-codeblock.HyperMD-codeblock-begin {
459 |   border-top: 1px solid #CCC;
460 |   border-radius: 4px 4px 0 0;
461 | }
462 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-codeblock.HyperMD-codeblock-end {
463 |   border-bottom: 1px solid #CCC;
464 |   border-radius: 0 0 4px 4px;
465 | }
466 | .CodeMirror.cm-s-hypermd-light div.HyperMD-codeblock-bg {
467 |   background-color: rgba(238, 238, 238, 0.5);
468 | }
469 | .CodeMirror.cm-s-hypermd-light .cm-formatting-link + .cm-formatting-link-string,
470 | .CodeMirror.cm-s-hypermd-light .cm-formatting-link + .cm-formatting-link-string + .cm-url,
471 | .CodeMirror.cm-s-hypermd-light .cm-formatting-link + .cm-formatting-link-string + .cm-url + .cm-formatting-link-string,
472 | .CodeMirror.cm-s-hypermd-light .cm-formatting-link + .cm-formatting-link-string + .cm-url + .cm-link,
473 | .CodeMirror.cm-s-hypermd-light .cm-formatting-link + .cm-formatting-link-string + .cm-url + .cm-link + .cm-formatting-link-string {
474 |   display: inline-block;
475 |   font-size: 0.7em;
476 |   vertical-align: text-top;
477 | }
478 | .CodeMirror.cm-s-hypermd-light.HyperMD-with-alt span.cm-url, .CodeMirror.cm-s-hypermd-light.HyperMD-with-alt span.cm-link, .CodeMirror.cm-s-hypermd-light.HyperMD-with-alt .cm-link + .CodeMirror-widget, .CodeMirror.cm-s-hypermd-light.HyperMD-with-ctrl span.cm-url, .CodeMirror.cm-s-hypermd-light.HyperMD-with-ctrl span.cm-link, .CodeMirror.cm-s-hypermd-light.HyperMD-with-ctrl .cm-link + .CodeMirror-widget {
479 |   cursor: pointer;
480 | }
481 | .CodeMirror.cm-s-hypermd-light span.hmd-link-icon {
482 |   background: url(hypermd-image-link.png) no-repeat center center;
483 |   width: 20px;
484 |   height: 16px;
485 |   display: inline-block;
486 |   vertical-align: middle;
487 |   opacity: 0.4;
488 | }
489 | .CodeMirror.cm-s-hypermd-light span.hmd-link-icon:hover {
490 |   opacity: 1;
491 | }
492 | .CodeMirror.cm-s-hypermd-light span.hmd-link-icon:after {
493 |   content: "";
494 | }
495 | .CodeMirror.cm-s-hypermd-light img.hmd-image {
496 |   vertical-align: middle;
497 |   width: auto;
498 |   max-width: 100%;
499 |   height: auto;
500 | }
501 | .CodeMirror.cm-s-hypermd-light img.hmd-image.hmd-image-loading, .CodeMirror.cm-s-hypermd-light img.hmd-image.hmd-image-error {
502 |   min-width: 24px;
503 |   min-height: 24px;
504 |   background: #eeeeee url(hypermd-image-spin.gif) no-repeat center center;
505 | }
506 | .CodeMirror.cm-s-hypermd-light img.hmd-image.hmd-image-error {
507 |   background-image: url(hypermd-image-error.png);
508 | }
509 | .CodeMirror.cm-s-hypermd-light span.cm-math-2 {
510 |   font-size: 13.2pt;
511 | }
512 | .CodeMirror.cm-s-hypermd-light span.cm-hmd-escape-backslash {
513 |   color: #CAA;
514 | }
515 | .CodeMirror.cm-s-hypermd-light span.cm-hmd-escape-char {
516 |   color: #666;
517 | }
518 | .CodeMirror.cm-s-hypermd-light span.cm-hmd-footref {
519 |   display: inline-block;
520 |   font-size: 0.7em;
521 |   vertical-align: text-top;
522 |   background-color: rgba(238, 238, 238, 0.7);
523 |   color: #999;
524 |   margin-top: -0.2em;
525 | }
526 | .CodeMirror.cm-s-hypermd-light span.cm-inline-code {
527 |   color: #922;
528 |   font-size: 90%;
529 | }
530 | .CodeMirror.cm-s-hypermd-light span.cm-inline-code:not(.cm-formatting):not(.cm-hmd-indented-code) {
531 |   background-color: rgba(238, 238, 238, 0.5);
532 |   border-radius: 4px;
533 |   vertical-align: baseline;
534 |   border: #ccc solid 1px;
535 |   padding: 1px 0.4em;
536 | }
537 | .CodeMirror.cm-s-hypermd-light span.cm-inline-code.hmd-hidden-token {
538 |   font-size: 0;
539 | }
540 | .CodeMirror.cm-s-hypermd-light .HyperMD-goback {
541 |   width: 1px;
542 | }
543 | .CodeMirror.cm-s-hypermd-light div.HyperMD-goback-button {
544 |   padding-right: 15px;
545 |   border-radius: 0 10px 10px 0;
546 |   display: inline-block;
547 |   text-align: center;
548 |   background-color: #8daed9;
549 |   color: #f7f7f7;
550 |   cursor: pointer;
551 | }
552 | .CodeMirror.cm-s-hypermd-light div.HyperMD-goback-button:hover {
553 |   color: transparent;
554 |   text-align: left;
555 | }
556 | .CodeMirror.cm-s-hypermd-light div.HyperMD-goback-button:hover:before {
557 |   position: absolute;
558 |   padding-left: 5px;
559 |   content: "Back";
560 |   color: #f7f7f7;
561 | }
562 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row {
563 |   line-height: 1.5;
564 | }
565 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row > span {
566 |   display: inline-block;
567 |   border-top: 1px solid #999;
568 |   margin-right: 50px;
569 | }
570 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-0 > span, .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-1 > span, .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-2 > span {
571 |   border-top: 0;
572 | }
573 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row span.cm-hmd-table-sep {
574 |   width: 15px;
575 |   text-align: center;
576 |   box-sizing: content-box;
577 |   font-weight: normal;
578 | }
579 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row span.cm-hmd-table-sep.cm-hmd-table-sep-dummy {
580 |   width: 1em;
581 | }
582 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row span.cm-hmd-table-sep:before {
583 |   content: "|";
584 |   color: transparent;
585 |   top: 0;
586 |   height: 100%;
587 |   position: absolute;
588 |   background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mOc+R8AAjcBmvywMWoAAAAASUVORK5CYII=) repeat-y center 0px;
589 |   pointer-events: none;
590 | }
591 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-0 {
592 |   font-weight: 600;
593 | }
594 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-0 .cm-strong {
595 |   font-weight: 700;
596 | }
597 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row .hmd-table-column-content {
598 |   padding: 4px 1px;
599 | }
600 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-1 {
601 |   line-height: 8px;
602 | }
603 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-1 > span {
604 |   border-bottom: 0;
605 | }
606 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-1 .hmd-table-column-content {
607 |   padding: 1px;
608 | }
609 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-0 > span {
610 |   border-bottom: 0;
611 | }
612 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-0 span.hmd-table-column-content {
613 |   padding-bottom: 1px;
614 | }
615 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-table-row.HyperMD-table-row-2 span.hmd-table-column-content {
616 |   padding-top: 1px;
617 | }
618 | .CodeMirror.cm-s-hypermd-light div.HyperMD-hover > .HyperMD-hover-content {
619 |   background-color: #000;
620 |   background-color: rgba(0, 0, 0, 0.7);
621 |   border: 0;
622 |   color: #fff;
623 |   border-radius: 5px;
624 |   padding: 5px 10px;
625 |   font-size: 95%;
626 |   min-width: 200px;
627 | }
628 | .CodeMirror.cm-s-hypermd-light div.HyperMD-hover > .HyperMD-hover-content a {
629 |   color: inherit;
630 | }
631 | .CodeMirror.cm-s-hypermd-light div.HyperMD-hover > .HyperMD-hover-content p {
632 |   margin: 0.2em 0;
633 | }
634 | .CodeMirror.cm-s-hypermd-light div.HyperMD-hover > .HyperMD-hover-content code {
635 |   display: inline-block;
636 |   font-size: 0.87em;
637 |   border: 1px solid #999;
638 |   border-radius: 2px;
639 |   padding: 0px 4px;
640 | }
641 | .CodeMirror.cm-s-hypermd-light div.HyperMD-hover > .HyperMD-hover-indicator {
642 |   content: " ";
643 |   display: block;
644 |   width: 0px;
645 |   margin-bottom: -5px;
646 |   border: 5px solid transparent;
647 |   border-top-color: #000;
648 |   border-top-color: rgba(0, 0, 0, 0.7);
649 | }
650 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html-stub {
651 |   display: inline-block;
652 |   font-size: 67%;
653 |   color: #999;
654 |   vertical-align: middle;
655 |   border: 1px solid #999;
656 |   padding: 0 0.2em;
657 |   border-radius: 5px;
658 |   margin: 0 0.5em;
659 |   background: #FAFAFA;
660 |   cursor: pointer;
661 | }
662 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html-stub.hmd-fold-html-stub-omittable {
663 |   display: none;
664 | }
665 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html-stub:hover, .CodeMirror.cm-s-hypermd-light .hmd-fold-html-stub.hmd-fold-html-stub-highlight {
666 |   color: #FFF;
667 |   border-color: #C30;
668 |   background: #F40;
669 | }
670 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html {
671 |   position: relative;
672 |   border: 1px solid #FFF;
673 | }
674 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html:hover {
675 |   border: 1px dashed #999;
676 | }
677 | .CodeMirror.cm-s-hypermd-light .hmd-fold-html:hover .hmd-fold-html-stub.hmd-fold-html-stub-omittable {
678 |   display: block;
679 |   right: 0;
680 |   bottom: 100%;
681 |   margin: 0;
682 |   position: absolute;
683 |   z-index: 100;
684 | }
685 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-header,
686 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-footnote,
687 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-codeblock,
688 | .CodeMirror.cm-s-hypermd-light pre.HyperMD-hr {
689 |   clear: left;
690 | }
691 | .CodeMirror.cm-s-hypermd-light span.hmd-hidden-token.cm-formatting-task {
692 |   color: transparent !important;
693 | }
694 | .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line.HyperMD-table-row-1, .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line.HyperMD-hr {
695 |   color: transparent;
696 |   text-shadow: none;
697 | }
698 | .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line.HyperMD-table-row-1 > span {
699 |   background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAQAAAAziH6sAAAADklEQVR42mOc+Z9x5n8ACTkDM4ikM1IAAAAASUVORK5CYII=) repeat-x 0px center;
700 | }
701 | .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line.HyperMD-table-row span.cm-hmd-table-sep {
702 |   color: transparent;
703 | }
704 | .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line.HyperMD-table-row span.cm-hmd-table-sep.cm-hmd-table-sep-dummy:before {
705 |   display: none;
706 | }
707 | .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line span.cm-formatting-quote {
708 |   color: transparent;
709 | }
710 | .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line span.cm-hmd-escape-backslash,
711 | .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line span.cm-formatting-header {
712 |   opacity: 0;
713 |   font-size: 0 !important;
714 |   overflow: hidden;
715 |   display: inline;
716 | }
717 | .CodeMirror.cm-s-hypermd-light pre.hmd-inactive-line span.cm-hmd-list-indent {
718 |   border-right: 0;
719 | }


--------------------------------------------------------------------------------
/lib/hypermd.css:
--------------------------------------------------------------------------------
 1 | @charset "UTF-8";
 2 | .CodeMirror span.hmd-fold-math, .CodeMirror pre.HyperMD-table-row span.cm-hmd-table-sep {
 3 |   display: inline-block;
 4 |   vertical-align: middle;
 5 | }
 6 | 
 7 | .CodeMirror span.hmd-hidden-token.cm-formatting-em, .CodeMirror span.hmd-hidden-token.cm-formatting-strong, .CodeMirror span.hmd-hidden-token.cm-formatting-strikethrough, .CodeMirror span.hmd-hidden-token.cm-formatting-code, .CodeMirror span.hmd-hidden-token.cm-formatting-link {
 8 |   display: inline;
 9 |   opacity: 0;
10 |   font-size: 0 !important;
11 | }
12 | 
13 | .CodeMirror {
14 |   /* adding some CodeMirror-not-implemented styles' default style */
15 |   /* tooltip for addon/hover */
16 |   /* gutter for addon/click */
17 |   /* addon/fold */
18 |   /* addon/table-align */
19 |   /* addon/fold-math */
20 | }
21 | .CodeMirror span.cm-formatting {
22 |   transition: opacity 0.15s;
23 | }
24 | .CodeMirror span.cm-inline-code,
25 | .CodeMirror span.cm-math {
26 |   color: #900;
27 | }
28 | .CodeMirror div.HyperMD-hover > .HyperMD-hover-content {
29 |   background-color: #fff;
30 |   color: #000;
31 |   border: 1px solid #000;
32 |   padding: 0.5em;
33 | }
34 | .CodeMirror div.HyperMD-hover > .HyperMD-hover-content p {
35 |   margin: 0.2em 0;
36 | }
37 | .CodeMirror .HyperMD-goback {
38 |   width: 1px;
39 | }
40 | .CodeMirror div.HyperMD-goback-button {
41 |   background-color: #ddd;
42 |   color: #333;
43 |   text-align: center;
44 |   cursor: pointer;
45 | }
46 | .CodeMirror span.hmd-link-icon:after {
47 |   content: "»";
48 |   color: #009;
49 |   text-shadow: 0 0 2px #69F;
50 | }
51 | .CodeMirror pre.HyperMD-table-row {
52 |   white-space: pre;
53 | }
54 | .CodeMirror pre.HyperMD-table-row .hmd-table-column,
55 | .CodeMirror pre.HyperMD-table-row .hmd-table-column-content {
56 |   display: inline-block;
57 | }
58 | .CodeMirror pre.HyperMD-table-row .hmd-table-column-left {
59 |   text-align: left;
60 | }
61 | .CodeMirror pre.HyperMD-table-row .hmd-table-column-center {
62 |   text-align: center;
63 | }
64 | .CodeMirror pre.HyperMD-table-row .hmd-table-column-right {
65 |   text-align: right;
66 | }
67 | .CodeMirror span.hmd-fold-math.hmd-fold-math.math-2 {
68 |   width: 100%;
69 | }


--------------------------------------------------------------------------------