Commit 75d8782a by yanju

定时动态发布功能

parent 7a608ea7
function checkHtml(htmlStr) {
var reg = /<[^>]+>/g;
return reg.test(htmlStr);
}
@import './reset.scss'; //样式重置
//变量
......
img { -webkit-touch-callout: none; }
img { -webkit-touch-callout: none;
max-height: 100%;
max-width:100%;
}
input{
outline:none;
......
<template>
<div class="v-right-item">
<slot name="right-toolbar-before" />
<button type="button" v-if="toolbars.navigation" @click="$clicks('navigation')" v-show="!s_navigation"
class="op-icon fa fa-mavon-bars"
aria-hidden="true" :title="`${d_words.tl_navigation_on} (F8)`"></button>
<button type="button" v-if="toolbars.navigation" @click="$clicks('navigation')" v-show="s_navigation"
class="op-icon fa fa-mavon-bars selected"
aria-hidden="true" :title="`${d_words.tl_navigation_off} (F8)`"></button>
<button type="button" v-if="toolbars.preview" @click="$clicks('preview')" v-show="s_preview_switch"
class="op-icon fa fa-mavon-eye-slash selected"
aria-hidden="true" :title="`${d_words.tl_edit} (F9)`"></button>
<button type="button" v-if="toolbars.preview" @click="$clicks('preview')" v-show="!s_preview_switch"
class="op-icon fa fa-mavon-eye"
aria-hidden="true" :title="`${d_words.tl_preview} (F9)`"></button>
<button type="button" v-if="toolbars.fullscreen" @click="$clicks('fullscreen')" v-show="!s_fullScreen"
class="op-icon fa fa-mavon-arrows-alt"
:title="`${d_words.tl_fullscreen_on} (F10)`" aria-hidden="true"></button>
<button type="button" v-if="toolbars.fullscreen" @click="$clicks('fullscreen')" v-show="s_fullScreen"
class="op-icon fa fa-mavon-compress selected"
:title="`${d_words.tl_fullscreen_off} (F10)`" aria-hidden="true"></button>
<button type="button" v-if="toolbars.readmodel" @click="$clicks('read')" class="op-icon fa fa-mavon-window-maximize" aria-hidden="true"
:title="`${d_words.tl_read} (F11)`"></button>
<button type="button" v-if="toolbars.subfield" @click="$clicks('subfield')" class="op-icon fa fa-mavon-columns" aria-hidden="true"
:class = "{'selected': s_subfield}" :title="`${s_subfield ? d_words.tl_single_column : d_words.tl_double_column} (F12)`"></button>
<span
v-if=" toolbars.help && toolbars.htmlcode && toolbars.readmodel && toolbars.fullscreen && toolbars.subfield && toolbars.navigation"
class="op-icon-divider"></span>
<button type="button" v-if="toolbars.htmlcode" @click="$clicks('html')" v-show="!s_html_code" class="op-icon fa fa-mavon-code"
:title="d_words.tl_html_on"
aria-hidden="true"></button>
<button type="button" v-if="toolbars.htmlcode" @click="$clicks('html')" v-show="s_html_code"
class="op-icon fa fa-mavon-code selected"
:title="d_words.tl_html_off" aria-hidden="true"></button>
<button type="button" v-if="toolbars.help" @click="$clicks('help')" class="op-icon fa fa-mavon-question-circle"
style="font-size: 17px;padding: 5px 6px 5px 3px"
:title="d_words.tl_help" aria-hidden="true"></button>
<slot name="right-toolbar-after" />
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 's-md-toolbar-right',
props: {
// 工具栏
s_subfield: {
type: Boolean ,
required: true
},
toolbars: { type: Object, required: true },
s_preview_switch: { type: Boolean, required: true },
s_fullScreen: { type: Boolean, required: true },
s_html_code: { type: Boolean, required: true },
s_navigation: { type: Boolean, required: true },
d_words: {
type: Object,
required: true
}
},
methods: {
// 工具栏功能图标click-----------------
$clicks(_type) {
// 让父节点来绑定事件并
this.$emit('toolbar_right_click', _type);
}
}
}
</script>
/**
* @Author: HuaChao Chen <CHC>
* @Date: 2017-05-06T21:40:39+08:00
* @Email: chenhuachaoxyz@gmail.com
* @Filename: config.js
* @Last modified by: CHC
* @Last modified time: 2017-05-06T22:12:49+08:00
* @License: MIT
* @Copyright: 2017
* @desc 初始化配置项
*/
import help_zh_CN from './lang/zh-CN/help_zh-CN.md'
import help_en from './lang/en/help_en.md'
import help_fr from './lang/fr/help_fr.md'
import help_pt_BR from './lang/pt-BR/help_pt-BR.md'
import help_ru from './lang/ru/help_ru.md'
import help_de from './lang/de/help_de.md'
import help_ja from './lang/ja/help_ja.md'
import words_zh_CN from './lang/zh-CN/words_zh-CN.json'
import words_en from './lang/en/words_en.json'
import words_fr from './lang/fr/words_fr.json'
import words_pt_BR from './lang/pt-BR/words_pt-BR.json'
import words_ru from './lang/ru/words_ru.json'
import words_de from './lang/de/words_de.json'
import words_ja from './lang/ja/words_ja.json'
export const CONFIG = {
'help_zh-CN': help_zh_CN,
'help_pt-BR': help_pt_BR,
'help_en': help_en,
'help_fr': help_fr,
'help_ru': help_ru,
'help_de': help_de,
'help_ja': help_ja,
'words_zh-CN': words_zh_CN,
'words_pt-BR': words_pt_BR,
'words_en': words_en,
'words_fr': words_fr,
'words_ru': words_ru,
'words_de': words_de,
'words_ja': words_ja,
'langList': ['en', 'zh-CN', 'fr', 'pt-BR', 'ru', 'de', 'ja'],
'toolbars': {
'bold': true,
'italic': true,
'header': true,
'underline': true,
'strikethrough': true,
'mark': true,
'superscript': true,
'subscript': true,
'quote': true,
'ol': true,
'ul': true,
'link': true,
'imagelink': true,
'code': true,
'table': true,
'undo': true,
'redo': true,
'trash': true,
'save': true,
'alignleft': true,
'aligncenter': true,
'alignright': true,
'navigation': true,
'subfield': true,
'fullscreen': true,
'readmodel': true,
'htmlcode': true,
'help': true,
'preview': true
}
};
/**
* @Author: HuaChao Chen <CHC>
* @Date: 2017-06-16T21:01:47+08:00
* @Email: chenhuachaoxyz@gmail.com
* @Filename: highlight.js
* @Last modified by: chc
* @Last modified time: 2017-11-24T19:55:22+08:00
* @License: MIT
* @Copyright: 2017
*/
// import hljs from 'highlight.js-async-webpack'
import {
loadScript
} from './extra-function.js'
function highLightCode(str, callback, hljsLangFuc, hljsFuc) {
var hljs = window.hljs;
if (!hljs) {
if (typeof hljsFuc !== 'function') {
console.warn('external_link.hljs_js is not a function, hljs can not load by mavon-editor, if you want to disabled this log, set external_link.hljs_js to function');
callback(str);
return;
}
var url = hljsFuc();
console.warn('hljs parsing file is missing. mavon-editor will autoload', url);
loadScript(url, function() {
_highLightCode(str, callback, hljsLangFuc);
});
} else {
if (typeof hljsLangFuc === 'function') {
_highLightCode(str, callback, hljsLangFuc);
} else {
console.warn('external_link.hljs_lang is not a function, hljs will not to work');
callback(str);
}
}
}
function _highLightCode(str, callback, hljsLangFuc) {
var dom = document.createElement('div');
var hljs = window.hljs;
dom.innerHTML = str;
var pre_code = dom.querySelectorAll('pre > div.hljs > code');
if (pre_code && hljs && (typeof hljsLangFuc === 'function')) {
var flag = 0;
var i = 0;
var deal = 0;
var not_include_lang = {}; // these lang parse file need to be include.
var url = '';
for (i = 0; i < pre_code.length; i++) {
var lang = pre_code[i].className.toLowerCase();
if (lang.length > 0) {
// if this lang parse file missing
url = hljsLangFuc(lang);
if (!hljs.getLanguage(lang) && !not_include_lang.hasOwnProperty(lang) && url.length > 0) {
not_include_lang[lang] = url;
}
}
}
// we need to include these lang parse file manually
var need_langs = [];
for (var key in not_include_lang) {
if (not_include_lang.hasOwnProperty(key)) {
need_langs.push(key);
}
}
for (i = 0; i < need_langs.length; i++) {
url = not_include_lang[need_langs[i]];
loadScript(url, function() {
deal = deal + 1;
if (deal === need_langs.length) {
for (var i = 0; i < pre_code.length; i++) {
var lang = pre_code[i].className;
// if lang is valid.
if (lang.length > 0 && hljs.getLanguage(lang)) {
hljs.highlightBlock(pre_code[i])
}
}
callback(dom.innerHTML);
}
});
}
if (need_langs.length === 0) {
for (i = 0; i < pre_code.length; i++) {
lang = pre_code[i].className;
// if lang is valid.
if (lang.length > 0 && hljs.getLanguage(lang)) {
hljs.highlightBlock(pre_code[i])
}
}
callback(dom.innerHTML);
}
} else {
callback(dom.innerHTML);
}
}
export default highLightCode;
export default {
'agate': 1,
'androidstudio': 1,
'arduino-light': 1,
'arta': 1,
'ascetic': 1,
'atelier-cave-dark': 1,
'atelier-cave-light': 1,
'atelier-dune-dark': 1,
'atelier-dune-light': 1,
'atelier-estuary-dark': 1,
'atelier-estuary-light': 1,
'atelier-forest-dark': 1,
'atelier-forest-light': 1,
'atelier-heath-dark': 1,
'atelier-heath-light': 1,
'atelier-lakeside-dark': 1,
'atelier-lakeside-light': 1,
'atelier-plateau-dark': 1,
'atelier-plateau-light': 1,
'atelier-savanna-dark': 1,
'atelier-savanna-light': 1,
'atelier-seaside-dark': 1,
'atelier-seaside-light': 1,
'atelier-sulphurpool-dark': 1,
'atelier-sulphurpool-light': 1,
'atom-one-dark': 1,
'atom-one-light': 1,
'brown-paper': 1,
'codepen-embed': 1,
'color-brewer': 1,
'darcula': 1,
'dark': 1,
'darkula': 1,
'default': 1,
'docco': 1,
'dracula': 1,
'far': 1,
'foundation': 1,
'github-gist': 1,
'github': 1,
'googlecode': 1,
'grayscale': 1,
'gruvbox-dark': 1,
'gruvbox-light': 1,
'hopscotch': 1,
'hybrid': 1,
'idea': 1,
'ir-black': 1,
'kimbie.dark': 1,
'kimbie.light': 1,
'magula': 1,
'mono-blue': 1,
'monokai-sublime': 1,
'monokai': 1,
'obsidian': 1,
'ocean': 1,
'paraiso-dark': 1,
'paraiso-light': 1,
'pojoaque': 1,
'purebasic': 1,
'qtcreator_dark': 1,
'qtcreator_light': 1,
'railscasts': 1,
'rainbow': 1,
'routeros': 1,
'school-book': 1,
'solarized-dark': 1,
'solarized-light': 1,
'sunburst': 1,
'tomorrow-night-blue': 1,
'tomorrow-night-bright': 1,
'tomorrow-night-eighties': 1,
'tomorrow-night': 1,
'tomorrow': 1,
'vs': 1,
'vs2015': 1,
'xcode': 1,
'xt256': 1,
'zenburn': 1
};
export default {
'1c': '1c',
'abnf': 'abnf',
'accesslog': 'accesslog',
'actionscript': 'actionscript',
'as': 'actionscript',
'ada': 'ada',
'apache': 'apache',
'apacheconf': 'apache',
'applescript': 'applescript',
'osascript': 'applescript',
'arduino': 'arduino',
'armasm': 'armasm',
'arm': 'armasm',
'asciidoc': 'asciidoc',
'adoc': 'asciidoc',
'aspectj': 'aspectj',
'autohotkey': 'autohotkey',
'ahk': 'autohotkey',
'autoit': 'autoit',
'avrasm': 'avrasm',
'awk': 'awk',
'axapta': 'axapta',
'bash': 'bash',
'sh': 'bash',
'zsh': 'bash',
'basic': 'basic',
'bnf': 'bnf',
'brainfuck': 'brainfuck',
'bf': 'brainfuck',
'cal': 'cal',
'capnproto': 'capnproto',
'capnp': 'capnproto',
'ceylon': 'ceylon',
'clean': 'clean',
'icl': 'clean',
'dcl': 'clean',
'clojure-repl': 'clojure-repl',
'clojure': 'clojure',
'clj': 'clojure',
'cmake': 'cmake',
'cmake.in': 'cmake',
'coffeescript': 'coffeescript',
'coffee': 'coffeescript',
'cson': 'coffeescript',
'iced': 'coffeescript',
'coq': 'coq',
'cos': 'cos',
'cls': 'cos',
'cpp': 'cpp',
'c': 'cpp',
'cc': 'cpp',
'h': 'cpp',
'c++': 'cpp',
'h++': 'cpp',
'hpp': 'cpp',
'crmsh': 'crmsh',
'crm': 'crmsh',
'pcmk': 'crmsh',
'crystal': 'crystal',
'cr': 'crystal',
'cs': 'cs',
'csharp': 'cs',
'csp': 'csp',
'css': 'css',
'd': 'd',
'dart': 'dart',
'delphi': 'delphi',
'dpr': 'delphi',
'dfm': 'delphi',
'pas': 'delphi',
'pascal': 'delphi',
'freepascal': 'delphi',
'lazarus': 'delphi',
'lpr': 'delphi',
'lfm': 'delphi',
'diff': 'diff',
'patch': 'diff',
'django': 'django',
'jinja': 'django',
'dns': 'dns',
'bind': 'dns',
'zone': 'dns',
'dockerfile': 'dockerfile',
'docker': 'dockerfile',
'dos': 'dos',
'bat': 'dos',
'cmd': 'dos',
'dsconfig': 'dsconfig',
'dts': 'dts',
'dust': 'dust',
'dst': 'dust',
'ebnf': 'ebnf',
'elixir': 'elixir',
'elm': 'elm',
'erb': 'erb',
'erlang-repl': 'erlang-repl',
'erlang': 'erlang',
'erl': 'erlang',
'excel': 'excel',
'xlsx': 'excel',
'xls': 'excel',
'fix': 'fix',
'flix': 'flix',
'fortran': 'fortran',
'f90': 'fortran',
'f95': 'fortran',
'fsharp': 'fsharp',
'fs': 'fsharp',
'gams': 'gams',
'gms': 'gams',
'gauss': 'gauss',
'gss': 'gauss',
'gcode': 'gcode',
'nc': 'gcode',
'gherkin': 'gherkin',
'feature': 'gherkin',
'glsl': 'glsl',
'go': 'go',
'golang': 'go',
'golo': 'golo',
'gradle': 'gradle',
'groovy': 'groovy',
'haml': 'haml',
'handlebars': 'handlebars',
'hbs': 'handlebars',
'html.hbs': 'handlebars',
'html.handlebars': 'handlebars',
'haskell': 'haskell',
'hs': 'haskell',
'haxe': 'haxe',
'hx': 'haxe',
'hsp': 'hsp',
'htmlbars': 'htmlbars',
'http': 'http',
'https': 'http',
'hy': 'hy',
'hylang': 'hy',
'inform7': 'inform7',
'i7': 'inform7',
'ini': 'ini',
'toml': 'ini',
'irpf90': 'irpf90',
'java': 'java',
'jsp': 'java',
'javascript': 'javascript',
'js': 'javascript',
'jsx': 'javascript',
'jboss-cli': 'jboss-cli',
'wildfly-cli': 'jboss-cli',
'json': 'json',
'julia-repl': 'julia-repl',
'julia': 'julia',
'kotlin': 'kotlin',
'lasso': 'lasso',
'ls': 'livescript',
'lassoscript': 'lasso',
'ldif': 'ldif',
'leaf': 'leaf',
'less': 'less',
'lisp': 'lisp',
'livecodeserver': 'livecodeserver',
'livescript': 'livescript',
'llvm': 'llvm',
'lsl': 'lsl',
'lua': 'lua',
'makefile': 'makefile',
'mk': 'makefile',
'mak': 'makefile',
'markdown': 'markdown',
'md': 'markdown',
'mkdown': 'markdown',
'mkd': 'markdown',
'mathematica': 'mathematica',
'mma': 'mathematica',
'matlab': 'matlab',
'maxima': 'maxima',
'mel': 'mel',
'mercury': 'mercury',
'm': 'mercury',
'moo': 'mercury',
'mipsasm': 'mipsasm',
'mips': 'mipsasm',
'mizar': 'mizar',
'mojolicious': 'mojolicious',
'monkey': 'monkey',
'moonscript': 'moonscript',
'moon': 'moonscript',
'n1ql': 'n1ql',
'nginx': 'nginx',
'nginxconf': 'nginx',
'nimrod': 'nimrod',
'nim': 'nimrod',
'nix': 'nix',
'nixos': 'nix',
'nsis': 'nsis',
'objectivec': 'objectivec',
'mm': 'objectivec',
'objc': 'objectivec',
'obj-c': 'objectivec',
'ocaml': 'ocaml',
'ml': 'sml',
'openscad': 'openscad',
'scad': 'openscad',
'oxygene': 'oxygene',
'parser3': 'parser3',
'perl': 'perl',
'pl': 'perl',
'pm': 'perl',
'pf': 'pf',
'pf.conf': 'pf',
'php': 'php',
'php3': 'php',
'php4': 'php',
'php5': 'php',
'php6': 'php',
'pony': 'pony',
'powershell': 'powershell',
'ps': 'powershell',
'processing': 'processing',
'profile': 'profile',
'prolog': 'prolog',
'protobuf': 'protobuf',
'puppet': 'puppet',
'pp': 'puppet',
'purebasic': 'purebasic',
'pb': 'purebasic',
'pbi': 'purebasic',
'python': 'python',
'py': 'python',
'gyp': 'python',
'q': 'q',
'k': 'q',
'kdb': 'q',
'qml': 'qml',
'qt': 'qml',
'r': 'r',
'rib': 'rib',
'roboconf': 'roboconf',
'graph': 'roboconf',
'instances': 'roboconf',
'routeros': 'routeros',
'mikrotik': 'routeros',
'rsl': 'rsl',
'ruby': 'ruby',
'rb': 'ruby',
'gemspec': 'ruby',
'podspec': 'ruby',
'thor': 'ruby',
'irb': 'ruby',
'ruleslanguage': 'ruleslanguage',
'rust': 'rust',
'rs': 'rust',
'scala': 'scala',
'scheme': 'scheme',
'scilab': 'scilab',
'sci': 'scilab',
'scss': 'scss',
'shell': 'shell',
'console': 'shell',
'smali': 'smali',
'smalltalk': 'smalltalk',
'st': 'smalltalk',
'sml': 'sml',
'sqf': 'sqf',
'sql': 'sql',
'stan': 'stan',
'stata': 'stata',
'do': 'stata',
'ado': 'stata',
'step21': 'step21',
'p21': 'step21',
'step': 'step21',
'stp': 'step21',
'stylus': 'stylus',
'styl': 'stylus',
'subunit': 'subunit',
'swift': 'swift',
'taggerscript': 'taggerscript',
'tap': 'tap',
'tcl': 'tcl',
'tk': 'tcl',
'tex': 'tex',
'thrift': 'thrift',
'tp': 'tp',
'twig': 'twig',
'craftcms': 'twig',
'typescript': 'typescript',
'ts': 'typescript',
'vala': 'vala',
'vbnet': 'vbnet',
'vb': 'vbnet',
'vbscript-html': 'vbscript-html',
'vbscript': 'vbscript',
'vbs': 'vbscript',
'verilog': 'verilog',
'v': 'verilog',
'sv': 'verilog',
'svh': 'verilog',
'vhdl': 'vhdl',
'vim': 'vim',
'x86asm': 'x86asm',
'xl': 'xl',
'tao': 'xl',
'xml': 'xml',
'html': 'xml',
'xhtml': 'xml',
'rss': 'xml',
'atom': 'xml',
'xjb': 'xml',
'xsd': 'xml',
'xsl': 'xml',
'plist': 'xml',
'xquery': 'xquery',
'xpath': 'xquery',
'xq': 'xquery',
'yaml': 'yaml',
'yml': 'yaml',
'YAML': 'yaml',
'zephir': 'zephir',
'zep': 'zephir'
};
/**
* @Author: HuaChao Chen <CHC>
* @Date: 2017-05-03T00:31:20+08:00
* @Email: chenhuachaoxyz@gmail.com
* @Filename: markdown.js
* @Last modified by: chc
* @Last modified time: 2017-11-26T16:40:54+08:00
* @License: MIT
* @Copyright: 2017
*/
import hljsLangs from './hljs/lang.hljs.js'
/**
* Created by zhy on 2017/3/30.
*/
// default mode
var markdown_config = {
html: true, // Enable HTML tags in source
xhtmlOut: true, // Use '/' to close single tags (<br />).
breaks: true, // Convert '\n' in paragraphs into <br>
langPrefix: 'language-', // CSS language prefix for fenced blocks. Can be
linkify: false, // 自动识别url
typographer: true,
quotes: '“”‘’',
highlight: function (str, lang) {
if (lang && hljsLangs[lang]) {
return '<pre><div class="hljs"><code class="' + lang + '">' + markdown.utils.escapeHtml(str) + '</code></div></pre>';
}
return '<pre><code class="' + lang + '">' + markdown.utils.escapeHtml(str) + '</code></pre>';
}
}
var markdown = require('markdown-it')(markdown_config);
// 表情
var emoji = require('markdown-it-emoji');
// 下标
var sub = require('markdown-it-sub')
// 上标
var sup = require('markdown-it-sup')
// <dl/>
var deflist = require('markdown-it-deflist')
// <abbr/>
var abbr = require('markdown-it-abbr')
// footnote
var footnote = require('markdown-it-footnote')
// insert 带有下划线 样式 ++ ++
var insert = require('markdown-it-ins')
// mark
var mark = require('markdown-it-mark')
// taskLists
var taskLists = require('markdown-it-task-lists')
//
var container = require('markdown-it-container')
// add target="_blank" to all link
var defaultRender = markdown.renderer.rules.link_open || function(tokens, idx, options, env, self) {
return self.renderToken(tokens, idx, options);
};
markdown.renderer.rules.link_open = function (tokens, idx, options, env, self) {
// If you are sure other plugins can't add `target` - drop check below
var aIndex = tokens[idx].attrIndex('target');
if (aIndex < 0) {
tokens[idx].attrPush(['target', '_blank']); // add new attribute
} else {
tokens[idx].attrs[aIndex][1] = '_blank'; // replace value of existing attr
}
// pass token to default renderer.
return defaultRender(tokens, idx, options, env, self);
};
// math katex
var katex = require('markdown-it-katex-external');
var miip = require('markdown-it-images-preview');
markdown.use(emoji)
.use(taskLists)
.use(sup)
.use(sub)
.use(container)
.use(container, 'hljs-left') /* align left */
.use(container, 'hljs-center')/* align center */
.use(container, 'hljs-right')/* align right */
.use(deflist)
.use(abbr)
.use(footnote)
.use(insert)
.use(mark)
.use(container)
.use(miip)
.use(katex)
export default markdown
/**
* Created by zhy on 2017/4/24.
*/
/**
* keydown enter
*/
export const onecolumnKeyDownEnter = ($event , $vm , tomarkdown) => {
let element = $event.srcElement ? $event.srcElement : $event.target
let sel = window.getSelection();
let range = sel.getRangeAt(0);
// code中回车处理
if (range.startContainer.tagName === 'CODE' || range.startContainer.tagName === 'PRE') {
$event.preventDefault()
onecolumnInsert(range.startContainer , '\n')
} else if (range.startContainer.parentElement.tagName === 'CODE' || range.startContainer.parentElement.tagName === 'PRE') {
$event.preventDefault()
onecolumnInsert(range.startContainer.parentElement , '\n')
} else if (!blockQuoteDoubleEnter(range.startContainer , $event , range.startContainer)) {
$vm.s_table_enter = false
judgeRender(range.startContainer , $event , range.startContainer , range.startContainer , $vm)
/* if (result) {
range = range.cloneRange();
// code的渲染
if (result.children !== null && result.children.length > 0 && result.children[0].tagName === 'PRE') {
result.children[0].children[0].innerHTML = '\n'
result.innerHTML += '<div><br/></div>'
range.setStartAfter(result.children[0].children[0]);
} else if (result.lastChild) {
range.setStartAfter(result.lastChild);
} else {
range.setStartAfter(result);
}
range.collapse(true);
sel.removeAllRanges();
sel.addRange(range);
} */
}
$vm.d_value = tomarkdown(element.innerHTML)
}
/**
* insert
*/
export const onecolumnInsert = (dom , html) => {
dom.focus()
var sel
var range
if (window.getSelection) {
// IE9 and non-IE
sel = window.getSelection();
if (sel.getRangeAt && sel.rangeCount) {
range = sel.getRangeAt(0);
range.deleteContents();
// Range.createContextualFragment() would be useful here but is
// non-standard and not supported in all browsers (IE9, for one)
var el = document.createElement('div');
el.innerHTML = html;
var frag = document.createDocumentFragment()
var node
var lastNode
while ((node = el.firstChild)) {
lastNode = frag.appendChild(node);
}
range.insertNode(frag);
// Preserve the selection
if (lastNode) {
range = range.cloneRange();
range.setStartAfter(lastNode);
range.collapse(true);
sel.removeAllRanges();
sel.addRange(range);
}
}
} else if (document.selection && document.selection.type !== 'Control') {
// IE < 9
document.selection.createRange().pasteHTML(html);
}
}
/**
* 连续两次在段落中换行 跳出段落
*/
export const blockQuoteDoubleEnter = (dom , $event , self) => {
if (dom.tagName) {
if (dom.getAttribute('class') === 'content-div content-div-edit') {
return false
} else if (dom.tagName === 'BLOCKQUOTE') {
if (!self.innerText || self.innerText === '\n' || self.innerText === '') {
$event.preventDefault()
let sel = window.getSelection();
let range = sel.getRangeAt(0);
let next = dom.nextSibling
self.outerHTML = ''
dom.outerHTML += '<div><br/></div>'
range = range.cloneRange()
range.setStartAfter(next.previousSibling.lastChild);
range.collapse(true);
sel.removeAllRanges();
sel.addRange(range);
}
return true
}
return blockQuoteDoubleEnter(dom.parentElement, $event , dom)
} else {
return blockQuoteDoubleEnter(dom.parentElement, $event , dom)
}
}
/**
* 在表格中回车特殊处理(暂时只做表格回车 , 后续可能拓展)
*/
export const judgeRender = (dom , $event , self , pre , $vm) => {
if (dom.tagName) {
if (dom.tagName === 'TABLE') {
$vm.s_table_enter = true
self = dom
}
if (dom.getAttribute('class') === 'content-div content-div-edit') {
// 在表格中回车 在表格后换行
if ($vm.s_table_enter) {
let sel = window.getSelection();
let range = sel.getRangeAt(0);
range = range.cloneRange()
$event.preventDefault()
let next = self.nextSibling
self.outerHTML += '<div><br/></div>'
range.setStartAfter(next.previousSibling.lastChild);
range.collapse(true);
sel.removeAllRanges();
sel.addRange(range);
}
return;
}
judgeRender(dom.parentElement , $event , self , dom , $vm)
/* let obj = document.createElement('div')
obj.innerHTML = markdown.render(dom.innerHTML.replace('&gt;' , '>'))
var objText = obj.innerText
var domText = dom.innerText
var objTextNoSpaceEnter = objText.replace(/\s+/g, '').replace(/[\r\n]/g, '')
var domTextNoSpaceEnter = domText.replace(/\s+/g, '').replace(/[\r\n]/g, '')
if (obj.children.length > 0) {
if (obj.children[0].innerText.replace(/\s+/g, '').replace(/[\r\n]/g, '') === domTextNoSpaceEnter || obj.children[0].innerText === domText || objText === domText || domTextNoSpaceEnter === objTextNoSpaceEnter) {
return judgeRender(dom.parentElement , $event , self ,dom , $vm)
} else {
// 有变化
$event.preventDefault()
dom.innerHTML = markdown.render(tomarkdown(dom.innerHTML))
return dom
}
} else {
if (objText === domText || objTextNoSpaceEnter === domTextNoSpaceEnter) {
return judgeRender(dom.parentElement , $event , self , dom , $vm)
} else {
// 有变化
dom.innerHTML = markdown.render(tomarkdown(obj.innerHTML))
return dom
}
} */
} else {
judgeRender(dom.parentElement , $event , self , dom , $vm)
}
}
/**
* @Author: HuaChao Chen <chc>
* @Date: 2017-05-03T00:31:20+08:00
* @Email: chenhuachaoxyz@gmail.com
* @Filename: to-markdown.js
* @Last modified by: chc
* @Last modified time: 2017-06-12T20:42:27+08:00
* @License: MIT
* @Copyright: 2017
*/
/**
* Created by zhy on 2017/4/9.
*/
var toMarkdown = require('to-markdown');
//
const coverterP = {
filter: 'P',
replacement: function (content) {
return '\n' + content
}
}
const coverterp = {
filter: 'p',
replacement: function (content) {
return '\n' + content
}
}
const coverterDiv = {
filter: 'DIV',
replacement: function (content) {
return '\n' + content
}
}
const coverterdiv = {
filter: 'div',
replacement: function (content) {
return '\n' + content
}
}
// 解析代码块
const coverterCode = {
filter: 'pre',
replacement: function (content) {
let objE = document.createElement('div');
objE.innerHTML = content;
let codes = objE.getElementsByTagName('code')
if (codes !== null && codes.length > 0) {
let code = codes[0]
let codeType = code.getAttribute('class') === null ? '' : code.getAttribute('class')
let codeContent = code.innerText
return '\n```' + codeType + '\n' + codeContent + '\n```\n';
}
return '\n```\n' + content + '\n```\n';
}
}
// 解析表格
const coverterTable = {
filter: 'table',
replacement: function (content) {
let table = document.createElement('table');
table.innerHTML = content;
let dom = '\n';
let tableMark = '';
let thead = table.getElementsByTagName('thead')[0];
let thead_tr = thead.getElementsByTagName('tr')[0];
let thead_th = thead_tr.getElementsByTagName('th')
for (let i = 0; i < thead_th.length; i++) {
dom += '| ' + thead_th[i].innerText + ' '
let text_align = thead_th[i].style.textAlign
if (text_align === 'left') {
tableMark += '| :- '
} else if (text_align === 'center') {
tableMark += '| :-: '
} else if (text_align === 'right') {
tableMark += '| -: '
} else {
tableMark += '| - '
}
if (i === thead_th.length - 1) {
dom += '|\n' + tableMark + ' |\n'
}
}
let tbody
if (table.getElementsByTagName('tbody')) {
tbody = table.getElementsByTagName('tbody')[0];
let tbody_tr = tbody.getElementsByTagName('tr')
if (tbody_tr.length > 0) {
for (let i = 0; i < tbody_tr.length; i++) {
let tbody_td = tbody_tr[i].getElementsByTagName('td')
for (let j = 0; j < tbody_td.length; j++) {
dom += '| ' + tbody_td[j].innerText + ' ';
if (j === tbody_td.length - 1) {
dom += '|\n';
}
}
}
}
}
return dom
}
}
// 上角标
const coverterSup = {
filter: 'sup',
replacement: function (content) {
return '^' + content + '^';
}
}
// 下角标
const coverterSub = {
filter: 'sub',
replacement: function (content) {
return '~' + content + '~';
}
}
// 下划线
const coverterUnderline = {
filter: 'ins',
replacement: function (content) {
return '++' + content + '++';
}
}
// 中画线
const coverterStrikethrough = {
filter: 's',
replacement: function (content) {
return '~~' + content + '~~';
}
}
// 标记
const coverterMark = {
filter: 'mark',
replacement: function (content) {
return '==' + content + '==';
}
}
// 图片
const converterImg = {
filter: 'img',
replacement: function(content, tag) {
var rel = tag.getAttribute('rel');
var alt = tag.getAttribute('alt');
if (rel && alt) {
return '![' + alt + ']' + '(' + rel + ')'
}
else {
var src = tag.getAttribute('src');
return '![' + alt + ']' + '(' + src + ')'
}
}
}
var tomarkdown = function (str) {
return toMarkdown(str, {
converters: [
coverterCode,
coverterTable,
coverterSup,
coverterSub,
coverterUnderline,
coverterStrikethrough,
coverterMark,
coverterP,
coverterp,
coverterDiv,
coverterdiv,
converterImg
]
});
}
export default tomarkdown
$borderColor : 1px solid #F2F6FC;
$op-height :40px;
//textarea:disabled;
//background-color #ffffff
%scrollbar{
&.scroll-style::-webkit-scrollbar{
width :6px;
background-color: #e5e5e5;
}
&.scroll-style::-webkit-scrollbar-thumb{
background-color: #b7b7b7;
border-radius: 4px;
}
&.scroll-style::-webkit-scrollbar-thumb:hover{
background-color: #a1a1a1;
}
&.scroll-style::-webkit-scrollbar-thumb:active{
background-color :#a1a1a1;
}
&.scroll-style::-webkit-scrollbar-track{
-webkit-box-shadow :0 0 0 gray inset;
}
&.scroll-style-border-radius::-webkit-scrollbar{
border-bottom-right-radius :4px;
}
}
/* 路由内容 */
.v-note-wrapper{
position: relative;
min-width :300px;
min-height: 300px;
display: flex;
flex-direction :column;
background-color: #fff;
z-index :1500;
text-align :left;
border: $borderColor;
border-radius: 4px;
&.fullscreen
{
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
margin :0;
height: auto;
z-index: 1501;
}
.v-note-op
{
padding: 1px;
width :100%;
display :flex;
white-space: pre-line;
flex: none;
min-height :$op-height;
user-select :none;
border-bottom :$borderColor;
border-radius :4px 4px 0 0;
background-color: #fff;
z-index: 1;
.v-left-item, .v-right-item{
flex: 1;
min-height :$op-height;
box-sizing: border-box;
.op-icon-divider
{
height :$op-height;
border-left :1px solid #e5e5e5;
margin: 0 6px 0 4px;}
.op-icon
{
box-sizing: border-box;
display :inline-block;
cursor: pointer;
height :28px;
width: 28px;
margin :6px 0 5px 0;
font-size: 15px;
padding :4.5px 6px 5px 3.5px;
color: #757575;
border-radius :5px;
text-align :center;
background: none;
border: none;
outline: none;
line-height :1;
//vertical-align middle
&.dropdown-wrapper{
line-height :18px;
}
&.selected{
color: rgba(0, 0, 0, 0.8);
background: #eaeaea;
}
&:hover{
color: rgba(0, 0, 0, 0.8);
background: #e9e9eb;
}
}
&.transition
{ .op-icon
{transition: all 0.2s linear 0s;}}
}
.v-right-item
{
text-align: right;
padding-right: 6px;
max-width: 30%;}
.v-left-item
{
text-align :left;
padding-left: 6px;}
}
.v-note-panel
{
position: relative;
border-top: none;
display: flex;
flex :1;
width :100%;
box-sizing: border-box;
overflow :hidden;
.v-note-edit.divarea-wrapper{
flex :0 0 50%;
width: 50%;
padding: 0;
overflow-y :scroll;
overflow-x :hidden;
box-sizing: border-box;
cursor: text;
border-bottom-left-radius: 4px;
@extend %scrollbar;
&.transition{
transition: all 0.2s linear 0s;
}
&.single-edit{
width :100%;
flex: 0 0 100%;
overflow-y: auto;
}
&.single-show{
width: 0;
flex: 0 0 0;
display: none;
}
.content-div{
width :100%;
padding :20px 25px;
box-sizing :border-box;
outline: 0 none;
border: none !important;
color: #2c3e50;
font-size: 16px;
}
.content-input-wrapper{
width :100%;
padding :8px 25px 15px 25px;
}
}
.v-note-show
{
flex: 0 0 50%;
width :50%;
overflow-y :auto;
padding :0 0;
transition :all 0.2s linear 0s;
&.single-show{
flex :0 0 100%;
width :100%;
}
.v-show-content, .v-show-content-html{
width :100%;
height: 100%;
padding :8px 25px 15px 25px;
overflow-y :auto;
box-sizing :border-box;
overflow-x :hidden;
@extend %scrollbar
}
}
.v-note-navigation-wrapper
{
display: flex;
position :absolute;
width :250px;
right :0;
top: 0;
bottom: 0;
height :100%;
flex-direction: column;
background-color: rgba(255,255,255,0.98);
border-left: $borderColor;
border-right :$borderColor;
&.transition{
transition: all 0.1s linear 0s;
}
//@media only screen and (max-width 768px){
// width :50%;
// &.slideTop-enter-active, &.slideTop-leave-active
// {
// height :100%;
//
// }
// &.slideTop-enter, &.slideTop-leave-active
// {
// height: 0;
//
// }
// .v-note-navigation-title
// {
// height :50px;
// width :100%;
// border-bottom :$borderColor;
// flex: none;
// line-height:50px;
// font-size :16px;
// box-sizing :border-box;
// padding :0 12px 0 18px;
// .v-note-navigation-close{
// float: right;
// color: #606266;
// font-size :18px;
// cursor: pointer;
// }
//
// &:hover{
// color :#303133;
// }
// }
//
// .v-note-navigation-content {
// overflow-y: auto;
// flex: 1;
// @extend %scrollbar;
// padding: 8px 0;
//
// h1, h2, h3, h4, h5, h6 {
// margin: 2px 0;
// font-weight: 500;
// font-size: 17px;
// color: #2185d0;
// cursor: pointer;
// line-height: normal;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
// padding: 0 12px;
// border-bottom: none;
//
// &:hover {
// color: #483D8B;
// text-decoration-line: underline;
// }
// }
//
// h2 {
// padding-left: 27px;
// font-size: 17px;
// }
//
// h3 {
// padding-left: 42px;
// font-size: 17px;
// }
//
// h4 {
// padding-left: 58px;
// font-size: 15px;
// }
//
// h5 {
//
// padding-left: 72px;
// font-size: 15px;
// }
//
// h6 {
// padding-left: 87px;
// font-size: 15px;
// }
// }
//}
}
}
.v-note-read-model
{
position :relative;
display: none;
width :100%;
height :100%;
background :#fbfbfb;
padding :30px 8% 50px 8%;
overflow-y :auto;
@extend %scrollbar;
box-sizing: border-box;
&.show{
display: block;
}
}
&.shadow
{ border: none;}
}
// box-shadow 0 2px 12px 0 rgba(0, 0, 0, 0.1)
.v-note-help-wrapper
{
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background :rgba(0, 0, 0, 0.7);
z-index :1600;
transition: all 0.1s linear 0s;
&.fade-enter-active, &.fade-leave-active
{ opacity: 1;}
&.fade-enter, &.fade-leave-active
{opacity: 0;}
.v-note-help-content
{ position :relative;
width: 60%;
max-width: 800px;
margin: 30px auto;
height: 90%;
min-width: 320px;
transition :all 0.1s linear 0s;
z-index :3;
border: $borderColor;
&.shadow
{ border :none;
box-shadow: 0 0 5px rgba(0, 0, 0, .156863), 0 0 5px rgba(0, 0, 0, .227451);}
i
{ font-size: 28px;
position: absolute;
right :15px;
top: 8px;
color: rgba(0, 0, 0, 0.7);
cursor: pointer;
&:hover{
color: rgba(0, 0, 0, 1);
}
}
.v-note-help-show
{ width: 100%;
height: 100%;
font-size: 18px;
background :#fbfbfb;
overflow-y :auto;
padding: 2% 6%;
@extend %scrollbar
}
}
}
.v-note-img-wrapper
{
position:fixed;
display: flex;
justify-content: center;
align-items: center;
left :0;
right :0;
top :0;
bottom: 0;
background :rgba(0, 0, 0, 0.7);
z-index :1600;
transition :all 0.1s linear 0s;
&.fade-enter-active, &.fade-leave-active
{ opacity :1;}
&.fade-enter, &.fade-leave-active
{ opacity :0;}
img
{ flex: 0 0 auto;
z-index: 3;
}
i
{font-size :28px;
position :absolute;
right :15px;
top :8px;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
&:hover{
color: rgba(255, 255, 255, 1);
}
}
}
/**
* @Author: HuaChao Chen <CHC>
* @Date: 2017-05-05T15:57:16+08:00
* @Email: chenhuachaoxyz@gmail.com
* @Filename: md.css
* @Last modified by: chc
* @Last modified time: 2017-06-15T00:13:34+08:00
* @License: MIT
* @Copyright: 2017
*/
.markdown-body strong{
font-weight: bolder;
}
.markdown-body .hljs-center {
text-align: center;
}
.markdown-body .hljs-right {
text-align: right;
}
.markdown-body .hljs-left {
text-align: left;
}
Font license info
## Font Awesome
Copyright (C) 2016 by Dave Gandy
Author: Dave Gandy
License: SIL ()
Homepage: http://fortawesome.github.com/Font-Awesome/
This webfont is generated by http://fontello.com open source project.
================================================================================
Please, note, that you should obey original font licenses, used to make this
webfont pack. Details available in LICENSE.txt file.
- Usually, it's enough to publish content of LICENSE.txt file somewhere on your
site in "About" section.
- If your project is open-source, usually, it will be ok to make LICENSE.txt
file publicly available in your repository.
- Fonts, used in Fontello, don't require a clickable link on your site.
But any kind of additional authors crediting is welcome.
================================================================================
Comments on archive content
---------------------------
- /font/* - fonts in different formats
- /css/* - different kinds of css, for all situations. Should be ok with
twitter bootstrap. Also, you can skip <i> style and assign icon classes
directly to text elements, if you don't mind about IE7.
- demo.html - demo file, to show your webfont content
- LICENSE.txt - license info about source fonts, used to build your one.
- config.json - keeps your settings. You can import it back into fontello
anytime, to continue your work
Why so many CSS files ?
-----------------------
Because we like to fit all your needs :)
- basic file, <your_font_name>.css - is usually enough, it contains @font-face
and character code definitions
- *-ie7.css - if you need IE7 support, but still don't wish to put char codes
directly into html
- *-codes.css and *-ie7-codes.css - if you like to use your own @font-face
rules, but still wish to benefit from css generation. That can be very
convenient for automated asset build systems. When you need to update font -
no need to manually edit files, just override old version with archive
content. See fontello source code for examples.
- *-embedded.css - basic css file, but with embedded WOFF font, to avoid
CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain.
We strongly recommend to resolve this issue by `Access-Control-Allow-Origin`
server headers. But if you ok with dirty hack - this file is for you. Note,
that data url moved to separate @font-face to avoid problems with <IE9, when
string is too long.
- animate.css - use it to get ideas about spinner rotation animation.
Attention for server setup
--------------------------
You MUST setup server to reply with proper `mime-types` for font files -
otherwise some browsers will fail to show fonts.
Usually, `apache` already has necessary settings, but `nginx` and other
webservers should be tuned. Here is list of mime types for our file extensions:
- `application/vnd.ms-fontobject` - eot
- `application/x-font-woff` - woff
- `application/x-font-ttf` - ttf
- `image/svg+xml` - svg
{
"name": "",
"css_prefix_text": "fa-mavon-",
"css_use_suffix": false,
"hinting": true,
"units_per_em": 1000,
"ascent": 850,
"glyphs": [
{
"uid": "02cca871bb69da75e8ee286b7055832c",
"css": "bold",
"code": 59392,
"src": "fontawesome"
},
{
"uid": "a8cb1c217f02b073db3670c061cc54d2",
"css": "italic",
"code": 59393,
"src": "fontawesome"
},
{
"uid": "0c708edd8fae2376b3370aa56d40cf9e",
"css": "header",
"code": 61916,
"src": "fontawesome"
},
{
"uid": "d4a4a38a40b728f46dad1de4ac950231",
"css": "underline",
"code": 61645,
"src": "fontawesome"
},
{
"uid": "61c242c9e2134d5864d7fdd57b3c9289",
"css": "strikethrough",
"code": 61644,
"src": "fontawesome"
},
{
"uid": "f04a5d24e9e659145b966739c4fde82a",
"css": "thumb-tack",
"code": 59394,
"src": "fontawesome"
},
{
"uid": "4e88371fb8857dacc1f66afe6314e426",
"css": "superscript",
"code": 61739,
"src": "fontawesome"
},
{
"uid": "3d1c929dbc966992185ce749548c1b2c",
"css": "subscript",
"code": 61740,
"src": "fontawesome"
},
{
"uid": "ab95e1351ebaec5850101097cbf7097f",
"css": "quote-left",
"code": 61709,
"src": "fontawesome"
},
{
"uid": "f6766a8b042c2453a4e153af03294383",
"css": "list-ol",
"code": 61643,
"src": "fontawesome"
},
{
"uid": "a2a74f5e7b7d9ba054897d8c795a326a",
"css": "list-ul",
"code": 61642,
"src": "fontawesome"
},
{
"uid": "0ddd3e8201ccc7d41f7b7c9d27eca6c1",
"css": "link",
"code": 59395,
"src": "fontawesome"
},
{
"uid": "381da2c2f7fd51f8de877c044d7f439d",
"css": "picture-o",
"code": 59396,
"src": "fontawesome"
},
{
"uid": "7034e4d22866af82bef811f52fb1ba46",
"css": "code",
"code": 61729,
"src": "fontawesome"
},
{
"uid": "8fb55fd696d9a0f58f3b27c1d8633750",
"css": "table",
"code": 61646,
"src": "fontawesome"
},
{
"uid": "bc71f4c6e53394d5ba46b063040014f1",
"css": "repeat",
"code": 59397,
"src": "fontawesome"
},
{
"uid": "f9c3205df26e7778abac86183aefdc99",
"css": "undo",
"code": 59398,
"src": "fontawesome"
},
{
"uid": "f48ae54adfb27d8ada53d0fd9e34ee10",
"css": "trash-o",
"code": 59399,
"src": "fontawesome"
},
{
"uid": "f4445feb55521283572ee88bc304f928",
"css": "floppy-o",
"code": 59400,
"src": "fontawesome"
},
{
"uid": "559647a6f430b3aeadbecd67194451dd",
"css": "bars",
"code": 61641,
"src": "fontawesome"
},
{
"uid": "53dd31a6cc6438192b2d7b09b1c1dd45",
"css": "columns",
"code": 61659,
"src": "fontawesome"
},
{
"uid": "07f0832c07f3d9713fffb06c8bffa027",
"css": "window-maximize",
"code": 62160,
"src": "fontawesome"
},
{
"uid": "b013f6403e5ab0326614e68d1850fd6b",
"css": "arrows-alt",
"code": 61618,
"src": "fontawesome"
},
{
"uid": "3c24ee33c9487bbf18796ca6dffa1905",
"css": "compress",
"code": 59401,
"src": "fontawesome"
},
{
"uid": "c5fd349cbd3d23e4ade333789c29c729",
"css": "eye",
"code": 59402,
"src": "fontawesome"
},
{
"uid": "7fd683b2c518ceb9e5fa6757f2276faa",
"css": "eye-slash",
"code": 59403,
"src": "fontawesome"
},
{
"uid": "17ebadd1e3f274ff0205601eef7b9cc4",
"css": "question-circle",
"code": 59404,
"src": "fontawesome"
},
{
"uid": "5211af474d3a9848f67f945e2ccaf143",
"css": "times",
"code": 59405,
"src": "fontawesome"
},
{
"uid": "f4f0e849b805be1f6d76b65581cb3b8b",
"css": "align-left",
"code": 59407,
"src": "fontawesome"
},
{
"uid": "ae6336c46d73af999fe7460c089abb4d",
"css": "align-center",
"code": 59408,
"src": "fontawesome"
},
{
"uid": "e1e7306b47c3c5e6faecce9d32571381",
"css": "align-right",
"code": 59409,
"src": "fontawesome"
}
]
}
\ No newline at end of file
/*
Animation example, for spinners
*/
.animate-spin {
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
-webkit-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
display: inline-block;
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-webkit-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-o-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@-ms-keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes spin {
0% {
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-moz-transform: rotate(359deg);
-o-transform: rotate(359deg);
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
.fa-mavon-bold:before { content: '\e800'; } /* '' */
.fa-mavon-italic:before { content: '\e801'; } /* '' */
.fa-mavon-thumb-tack:before { content: '\e802'; } /* '' */
.fa-mavon-link:before { content: '\e803'; } /* '' */
.fa-mavon-picture-o:before { content: '\e804'; } /* '' */
.fa-mavon-repeat:before { content: '\e805'; } /* '' */
.fa-mavon-undo:before { content: '\e806'; } /* '' */
.fa-mavon-trash-o:before { content: '\e807'; } /* '' */
.fa-mavon-floppy-o:before { content: '\e808'; } /* '' */
.fa-mavon-compress:before { content: '\e809'; } /* '' */
.fa-mavon-eye:before { content: '\e80a'; } /* '' */
.fa-mavon-eye-slash:before { content: '\e80b'; } /* '' */
.fa-mavon-question-circle:before { content: '\e80c'; } /* '' */
.fa-mavon-times:before { content: '\e80d'; } /* '' */
.fa-mavon-align-left:before { content: '\e80f'; } /* '' */
.fa-mavon-align-center:before { content: '\e810'; } /* '' */
.fa-mavon-align-right:before { content: '\e811'; } /* '' */
.fa-mavon-arrows-alt:before { content: '\f0b2'; } /* '' */
.fa-mavon-bars:before { content: '\f0c9'; } /* '' */
.fa-mavon-list-ul:before { content: '\f0ca'; } /* '' */
.fa-mavon-list-ol:before { content: '\f0cb'; } /* '' */
.fa-mavon-strikethrough:before { content: '\f0cc'; } /* '' */
.fa-mavon-underline:before { content: '\f0cd'; } /* '' */
.fa-mavon-table:before { content: '\f0ce'; } /* '' */
.fa-mavon-columns:before { content: '\f0db'; } /* '' */
.fa-mavon-quote-left:before { content: '\f10d'; } /* '' */
.fa-mavon-code:before { content: '\f121'; } /* '' */
.fa-mavon-superscript:before { content: '\f12b'; } /* '' */
.fa-mavon-subscript:before { content: '\f12c'; } /* '' */
.fa-mavon-header:before { content: '\f1dc'; } /* '' */
.fa-mavon-window-maximize:before { content: '\f2d0'; } /* '' */
\ No newline at end of file
.fa-mavon-bold { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe800;&nbsp;'); }
.fa-mavon-italic { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe801;&nbsp;'); }
.fa-mavon-thumb-tack { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe802;&nbsp;'); }
.fa-mavon-link { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe803;&nbsp;'); }
.fa-mavon-picture-o { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe804;&nbsp;'); }
.fa-mavon-repeat { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe805;&nbsp;'); }
.fa-mavon-undo { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe806;&nbsp;'); }
.fa-mavon-trash-o { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe807;&nbsp;'); }
.fa-mavon-floppy-o { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe808;&nbsp;'); }
.fa-mavon-compress { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe809;&nbsp;'); }
.fa-mavon-eye { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80a;&nbsp;'); }
.fa-mavon-eye-slash { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80b;&nbsp;'); }
.fa-mavon-question-circle { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80c;&nbsp;'); }
.fa-mavon-times { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80d;&nbsp;'); }
.fa-mavon-align-left { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80f;&nbsp;'); }
.fa-mavon-align-center { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe810;&nbsp;'); }
.fa-mavon-align-right { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe811;&nbsp;'); }
.fa-mavon-arrows-alt { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0b2;&nbsp;'); }
.fa-mavon-bars { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0c9;&nbsp;'); }
.fa-mavon-list-ul { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0ca;&nbsp;'); }
.fa-mavon-list-ol { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0cb;&nbsp;'); }
.fa-mavon-strikethrough { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0cc;&nbsp;'); }
.fa-mavon-underline { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0cd;&nbsp;'); }
.fa-mavon-table { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0ce;&nbsp;'); }
.fa-mavon-columns { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0db;&nbsp;'); }
.fa-mavon-quote-left { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf10d;&nbsp;'); }
.fa-mavon-code { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf121;&nbsp;'); }
.fa-mavon-superscript { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf12b;&nbsp;'); }
.fa-mavon-subscript { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf12c;&nbsp;'); }
.fa-mavon-header { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1dc;&nbsp;'); }
.fa-mavon-window-maximize { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf2d0;&nbsp;'); }
\ No newline at end of file
[class^="fa-mavon-"], [class*=" fa-mavon-"] {
font-family: 'fontello';
font-style: normal;
font-weight: normal;
/* fix buttons height */
line-height: 1em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
}
.fa-mavon-bold { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe800;&nbsp;'); }
.fa-mavon-italic { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe801;&nbsp;'); }
.fa-mavon-thumb-tack { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe802;&nbsp;'); }
.fa-mavon-link { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe803;&nbsp;'); }
.fa-mavon-picture-o { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe804;&nbsp;'); }
.fa-mavon-repeat { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe805;&nbsp;'); }
.fa-mavon-undo { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe806;&nbsp;'); }
.fa-mavon-trash-o { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe807;&nbsp;'); }
.fa-mavon-floppy-o { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe808;&nbsp;'); }
.fa-mavon-compress { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe809;&nbsp;'); }
.fa-mavon-eye { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80a;&nbsp;'); }
.fa-mavon-eye-slash { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80b;&nbsp;'); }
.fa-mavon-question-circle { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80c;&nbsp;'); }
.fa-mavon-times { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80d;&nbsp;'); }
.fa-mavon-align-left { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe80f;&nbsp;'); }
.fa-mavon-align-center { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe810;&nbsp;'); }
.fa-mavon-align-right { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xe811;&nbsp;'); }
.fa-mavon-arrows-alt { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0b2;&nbsp;'); }
.fa-mavon-bars { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0c9;&nbsp;'); }
.fa-mavon-list-ul { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0ca;&nbsp;'); }
.fa-mavon-list-ol { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0cb;&nbsp;'); }
.fa-mavon-strikethrough { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0cc;&nbsp;'); }
.fa-mavon-underline { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0cd;&nbsp;'); }
.fa-mavon-table { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0ce;&nbsp;'); }
.fa-mavon-columns { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf0db;&nbsp;'); }
.fa-mavon-quote-left { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf10d;&nbsp;'); }
.fa-mavon-code { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf121;&nbsp;'); }
.fa-mavon-superscript { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf12b;&nbsp;'); }
.fa-mavon-subscript { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf12c;&nbsp;'); }
.fa-mavon-header { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf1dc;&nbsp;'); }
.fa-mavon-window-maximize { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '&#xf2d0;&nbsp;'); }
\ No newline at end of file
@font-face {
font-family: 'fontello';
src: url('../font/fontello.eot?60486047');
src: url('../font/fontello.eot?60486047#iefix') format('embedded-opentype'),
url('../font/fontello.woff2?60486047') format('woff2'),
url('../font/fontello.woff?60486047') format('woff'),
url('../font/fontello.ttf?60486047') format('truetype'),
url('../font/fontello.svg?60486047#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('../font/fontello.svg?60486047#fontello') format('svg');
}
}
*/
[class^="fa-mavon-"]:before, [class*=" fa-mavon-"]:before {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.fa-mavon-bold:before { content: '\e800'; } /* '' */
.fa-mavon-italic:before { content: '\e801'; } /* '' */
.fa-mavon-thumb-tack:before { content: '\e802'; } /* '' */
.fa-mavon-link:before { content: '\e803'; } /* '' */
.fa-mavon-picture-o:before { content: '\e804'; } /* '' */
.fa-mavon-repeat:before { content: '\e805'; } /* '' */
.fa-mavon-undo:before { content: '\e806'; } /* '' */
.fa-mavon-trash-o:before { content: '\e807'; } /* '' */
.fa-mavon-floppy-o:before { content: '\e808'; } /* '' */
.fa-mavon-compress:before { content: '\e809'; } /* '' */
.fa-mavon-eye:before { content: '\e80a'; } /* '' */
.fa-mavon-eye-slash:before { content: '\e80b'; } /* '' */
.fa-mavon-question-circle:before { content: '\e80c'; } /* '' */
.fa-mavon-times:before { content: '\e80d'; } /* '' */
.fa-mavon-align-left:before { content: '\e80f'; } /* '' */
.fa-mavon-align-center:before { content: '\e810'; } /* '' */
.fa-mavon-align-right:before { content: '\e811'; } /* '' */
.fa-mavon-arrows-alt:before { content: '\f0b2'; } /* '' */
.fa-mavon-bars:before { content: '\f0c9'; } /* '' */
.fa-mavon-list-ul:before { content: '\f0ca'; } /* '' */
.fa-mavon-list-ol:before { content: '\f0cb'; } /* '' */
.fa-mavon-strikethrough:before { content: '\f0cc'; } /* '' */
.fa-mavon-underline:before { content: '\f0cd'; } /* '' */
.fa-mavon-table:before { content: '\f0ce'; } /* '' */
.fa-mavon-columns:before { content: '\f0db'; } /* '' */
.fa-mavon-quote-left:before { content: '\f10d'; } /* '' */
.fa-mavon-code:before { content: '\f121'; } /* '' */
.fa-mavon-superscript:before { content: '\f12b'; } /* '' */
.fa-mavon-subscript:before { content: '\f12c'; } /* '' */
.fa-mavon-header:before { content: '\f1dc'; } /* '' */
.fa-mavon-window-maximize:before { content: '\f2d0'; } /* '' */
\ No newline at end of file
Markdown Handbuch
===
> Details: [http://commonmark.org/help/](http://commonmark.org/help/)
## **Fett**
```
**fett**
__fett__
```
## *Kursiv*
```
*kursiv*
_kursiv_
```
## Überschriften
```
# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######
```
## Trennlinien
```
***
---
```
****
## ^Hoch^gestellt & ~Tief~gestellt
```
hochgestellt x^2^
tiefgestellt H~2~0
```
## ++Unterstrichen++ & ~~Durchgestrichen~~
```
++unterstrichen++
~~durchgestrichen~~
```
## ==Markiert==
```
==markiert==
```
## Zitat
```
> zitat 1
>> zitat 2
>>> zitat 3
...
```
## Liste
```
ol
1.
2.
3.
...
ul
-
-
...
```
## Todo Liste
- [x] aufgabe 1
- [ ] aufgabe 2
```
- [x] aufgabe 1
- [ ] aufgabe 2
```
## Link
```
Text Link
[Text](www.baidu.com)
Link mit Bild
![Text](http://www.image.com)
```
## Code
\``` Typ
Codeblock
\```
\` code \`
```c++
int main()
{
printf("hello world!");
}
```
`code`
## Tabelle
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| links | mitte | rechts |
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| links | mitte | rechts |
| ---------------------- | ------------- | ----------------- |
## Fußnote
```
hallo[^hallo]
```
Schau zum unteren Rand[^hallo]
[^hallo]: fussnote
## Emojis
Details: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)
## $\KaTeX$ Mathematik
Formeln lassen sich darstellen z.b. :$x_i + y_i = z_i$ und $\sum_{i=1}^n a_i=0$
Formeln können auf einer eigenen Zeile gerendert werden
$$\sum_{i=1}^n a_i=0$$
Details: [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)[katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)
## Layout
::: hljs-left
`::: hljs-left`
`links`
`:::`
:::
::: hljs-center
`::: hljs-center`
`mitte`
`:::`
:::
::: hljs-right
`::: hljs-right`
`rechts`
`:::`
:::
## Liste von Definitionen
Term 1
: Definition 1
Term 2 mit *inline markup*
: Definition 2
{ ein wenig code, teil von Definition 2 }
Dritter Absatz von Definition 2.
```
Term 1
: Definition 1
Term 2 mit *inline markup*
: Definition 2
{ ein wenig code, teil von Definition 2 }
Dritter Absatz von Definition 2.
```
## Abkürzungen
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
Die HTML Spezifikation
wird gepflegt vom W3C.
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
Die HTML Spezifikation
wird gepflegt vom W3C.
```
{
"start_editor": "Bearbeitung beginnen...",
"navigation_title": "Navigation",
"tl_bold": "Fett",
"tl_italic": "Kursiv",
"tl_header": "Überschrift",
"tl_header_one": "Überschrift 1",
"tl_header_two": "Überschrift 2",
"tl_header_three": "Überschrift 3",
"tl_header_four": "Überschrift 4",
"tl_header_five": "Überschrift 5",
"tl_header_six": "Überschrift 6",
"tl_underline": "Unterstrichen",
"tl_strikethrough": "Durchgestrichen",
"tl_mark": "Markiert",
"tl_superscript": "Hochgestellt",
"tl_subscript": "Tiefgestellt",
"tl_quote": "Zitat",
"tl_ol": "Ol",
"tl_ul": "Ul",
"tl_link": "Link",
"tl_image": "Link mit Bild",
"tl_code": "Code",
"tl_table": "Tabelle",
"tl_undo": "Rückgängig",
"tl_redo": "Wiederherstellen",
"tl_trash": "Mülleimer",
"tl_save": "Speichern",
"tl_navigation_on": "Navigation AN",
"tl_navigation_off": "Navigation AUS",
"tl_preview": "Vorschau",
"tl_aligncenter": "Text zentrieren",
"tl_alignleft": "Nach links ausrichten",
"tl_alignright": "Nach rechts ausrichten",
"tl_edit": "Bearbeiten",
"tl_single_column": "Einspaltig",
"tl_double_column": "Zweispaltig",
"tl_fullscreen_on": "Vollbild AN",
"tl_fullscreen_off": "Vollbild AUS",
"tl_read": "Lesemodus",
"tl_html_on": "HTML AN",
"tl_html_off": "HTML AUS",
"tl_help": "Markdown Handbuch",
"tl_upload": "Bilder-Upload",
"tl_upload_remove": "Entfernen",
"tl_popup_link_title": "Link hinzufügen",
"tl_popup_link_text": "Text des Links",
"tl_popup_link_addr": "Linkziel",
"tl_popup_img_link_title": "Bild hinzufügen",
"tl_popup_img_link_text": "Text des Bildes",
"tl_popup_img_link_addr": "Link auf Bild",
"tl_popup_link_sure": "Ja",
"tl_popup_link_cancel": "Abbruch"
}
Markdown Guide
===
> Detailed: [http://commonmark.org/help/](http://commonmark.org/help/)
## **Bold**
```
**bold**
__bold__
```
## *Italic*
```
*italic*
_italic_
```
## Header
```
# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######
```
## Dividing line
```
***
---
```
****
## ^Super^script & ~Sub~script
```
super x^2^
sub H~2~0
```
## ++Underline++ & ~~Strikethrough~~
```
++underline++
~~strikethrough~~
```
## ==Mark==
```
==mark==
```
## Quote
```
> quote 1
>> quote 2
>>> quote 3
...
```
## List
```
ol
1.
2.
3.
...
ul
-
-
...
```
## Todo List
- [x] task 1
- [ ] task 2
```
- [x] task 1
- [ ] task 2
```
## Link
```
Text Link
[Text](www.baidu.com)
Image Link
![Text](http://www.image.com)
```
## Code
\``` type
code block
\```
\` code \`
```c++
int main()
{
printf("hello world!");
}
```
`code`
## Table
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
| ---------------------- | ------------- | ----------------- |
## Footnote
```
hello[^hello]
```
Look at the bottom[^hello]
[^hello]: footnote
## Emojis
Detailed: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)
## $\KaTeX$ Mathematics
We can render formulas for example:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$
We can also single-line rendering
$$\sum_{i=1}^n a_i=0$$
Detailed: [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)[katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)
## Layout
::: hljs-left
`::: hljs-left`
`left`
`:::`
:::
::: hljs-center
`::: hljs-center`
`center`
`:::`
:::
::: hljs-right
`::: hljs-right`
`right`
`:::`
:::
## deflist
Term 1
: Definition 1
Term 2 with *inline markup*
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
```
Term 1
: Definition 1
Term 2 with *inline markup*
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
```
## abbr
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
{
"start_editor": "Begin editing...",
"navigation_title": "Navigation",
"tl_bold": "Bold",
"tl_italic": "Italic",
"tl_header": "Header",
"tl_header_one": "Header 1",
"tl_header_two": "Header 2",
"tl_header_three": "Header 3",
"tl_header_four": "Header 4",
"tl_header_five": "Header 5",
"tl_header_six": "Header 6",
"tl_underline": "Underline",
"tl_strikethrough": "Strikethrough",
"tl_mark": "Mark",
"tl_superscript": "Superscript",
"tl_subscript": "Subscript",
"tl_quote": "Quote",
"tl_ol": "Ol",
"tl_ul": "Ul",
"tl_link": "Link",
"tl_image": "Image Link",
"tl_code": "Code",
"tl_table": "Table",
"tl_undo": "Undo",
"tl_redo": "Redo",
"tl_trash": "Trash",
"tl_save": "Save",
"tl_navigation_on": "Navigation ON",
"tl_navigation_off": "Navigation OFF",
"tl_preview": "Preview",
"tl_aligncenter": "Center text",
"tl_alignleft": "Clamp text to the left",
"tl_alignright": "Clamp text to the right",
"tl_edit": "Edit",
"tl_single_column": "Single Column",
"tl_double_column": "Double Columns",
"tl_fullscreen_on": "FullScreen ON",
"tl_fullscreen_off": "FullScreen OFF",
"tl_read": "Read Model",
"tl_html_on": "HTML ON",
"tl_html_off": "HTML OFF",
"tl_help": "Markdown Guide",
"tl_upload": "Upload Images",
"tl_upload_remove": "Remove",
"tl_popup_link_title": "Add Link",
"tl_popup_link_text": "Link text",
"tl_popup_link_addr": "Link address",
"tl_popup_img_link_title": "Add Image",
"tl_popup_img_link_text": "Image Text",
"tl_popup_img_link_addr": "Image Link",
"tl_popup_link_sure": "Sure",
"tl_popup_link_cancel": "Cancel"
}
Guide Markdown
==============
> Détail : [http://commonmark.org/help/](http://commonmark.org/help/)
## **Bold**
```
**bold**
__bold__
```
## *Italic*
```
*italic*
_italic_
```
## Header
```
# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######
```
## Dividing line
```
***
---
```
****
## ^Super^script & ~Sub~script
```
super x^2^
sub H~2~0
```
## ++Underline++ & ~~Strikethrough~~
```
++underline++
~~strikethrough~~
```
## ==Mark==
```
==mark==
```
## Quote
```
> quote 1
>> quote 2
>>> quote 3
...
```
## List
```
ol
1.
2.
3.
...
ul
-
-
...
```
## Link
## Todo List
- [x] Équipe 1
- [ ] Équipe 2
```
- [x] Équipe 1
- [ ] Équipe 2
```
```
Text Link
[Text](www.baidu.com)
Image Link
![Text](http://www.image.com)
```
## Code
\``` type
code block
\```
\` code \`
```c++
int main()
{
printf("hello world!");
}
```
`code`
## Table
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
| ---------------------- | ------------- | ----------------- |
## Footnote
```
hello[^hello]
```
Look at the bottom[^hello]
[^hello]: footnote
## Emojis
Detailed: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)
## $\KaTeX$ Mathematics
We can render formulas for example:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$
We can also single-line rendering
$$\sum_{i=1}^n a_i=0$$
Detailed: [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)[katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)
## Layout
::: hljs-left
`::: hljs-left`
`left`
`:::`
:::
::: hljs-center
`::: hljs-center`
`center`
`:::`
:::
::: hljs-right
`::: hljs-right`
`right`
`:::`
:::
## deflist
Term 1
: Definition 1
Term 2 with *inline markup*
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
```
Term 1
: Definition 1
Term 2 with *inline markup*
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
```
## abbr
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
{
"start_editor": "Début d'édition...",
"navigation_title": "Navigation",
"tl_bold": "Gras",
"tl_italic": "Italique",
"tl_header": "Entête",
"tl_header_one": "Entête 1",
"tl_header_two": "Entête 2",
"tl_header_three": "Entête 3",
"tl_header_four": "Entête 4",
"tl_header_five": "Entête 5",
"tl_header_six": "Entête 6",
"tl_underline": "Souligné",
"tl_strikethrough": "Barré",
"tl_mark": "Mark",
"tl_superscript": "Exposant",
"tl_subscript": "Sous-exposant",
"tl_quote": "Quote",
"tl_ol": "Liste ",
"tl_ul": "Puce",
"tl_link": "Lien",
"tl_image": "Image Lien",
"tl_code": "Code",
"tl_table": "Table",
"tl_undo": "Annuler",
"tl_redo": "Refaire",
"tl_trash": "Supprimer",
"tl_save": "Sauver",
"tl_navigation_on": "Activer la navigation",
"tl_navigation_off": "Désactiver le navigation",
"tl_preview": "Previsualisé",
"tl_aligncenter": "Center le texte",
"tl_alignleft": "Férer le texte à gauche",
"tl_alignright": "Férer le texte à droite",
"tl_preview": "Previsualisé",
"tl_edit": "Editer",
"tl_single_column": "Seule Colonne",
"tl_double_column": "Colonnes Doubles",
"tl_fullscreen_on": "Activer le mode plein écran",
"tl_fullscreen_off": "Désactiver le mode plein écran",
"tl_read": "Lire le modèle",
"tl_html_on": "Activer le mode HTML",
"tl_html_off": "Désactiver le mode HTML",
"tl_help": "Guide Markdown",
"tl_upload": "Télécharger les images",
"tl_upload_remove": "Supprimer",
"tl_popup_link_title": "Ajouter un lien",
"tl_popup_link_text": "Description",
"tl_popup_link_addr": "Link",
"tl_popup_img_link_title": "Ajouter une image",
"tl_popup_img_link_text": "Description",
"tl_popup_img_link_addr": "Link",
"tl_popup_link_sure": "sûr",
"tl_popup_link_cancel": "Annuler"
}
Markdown 文法ガイド
===
> Detailed: [http://commonmark.org/help/](http://commonmark.org/help/)
## **太字**
```
**太字**
__太字__
```
## *斜体*
```
*斜体*
_斜体_
```
## 見出し
```
# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######
```
## 横線
```
***
---
```
****
## ^上付き^文字 & ~下付き~文字
```
super x^2^
sub H~2~0
```
## ++下線++ & ~~取り消し線~~
```
++underline++
~~strikethrough~~
```
## ==蛍光ペン==
```
==mark==
```
## 引用
```
> quote 1
>> quote 2
>>> quote 3
...
```
## リスト
```
番号付きリスト
1.
2.
3.
...
箇条書きリスト
-
-
...
```
## Todoリスト
- [x] task 1
- [ ] task 2
```
- [x] task 1
- [ ] task 2
```
## リンク
```
Text Link
[Text](www.baidu.com)
Image Link
![Text](http://www.image.com)
```
## コード
\``` type
code block
\```
\` code \`
```c++
int main()
{
printf("hello world!");
}
```
`code`
## 表
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
| ---------------------- | ------------- | ----------------- |
## 脚注
```
hello[^hello]
```
Look at the bottom[^hello]
[^hello]: footnote
## 絵文字
> Detailed: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)
## $\KaTeX$ 数式
> Detailed: [KaTeXマニュアル](http://www.intmath.com/cg5/katex-mathjax-comparison.php)、[KaTeX function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)、[LaTeXマニュアル](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)
We can render formulas for example:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$
We can also single-line rendering
$$\sum_{i=1}^n a_i=0$$
## レイアウト
::: hljs-left
`::: hljs-left`
`left`
`:::`
:::
::: hljs-center
`::: hljs-center`
`center`
`:::`
:::
::: hljs-right
`::: hljs-right`
`right`
`:::`
:::
## 定義リスト
Term 1
: Definition 1
Term 2 with *inline markup*
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
```
Term 1
: Definition 1
Term 2 with *inline markup*
: Definition 2
{ some code, part of Definition 2 }
Third paragraph of definition 2.
```
## abbr
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
{
"start_editor": "編集を始めてね!",
"navigation_title": "ナビゲーション",
"tl_bold": "太字",
"tl_italic": "斜体",
"tl_header": "見出し",
"tl_header_one": "見出し1",
"tl_header_two": "見出し2",
"tl_header_three": "見出し3",
"tl_header_four": "見出し4",
"tl_header_five": "見出し5",
"tl_header_six": "見出し6",
"tl_underline": "下線",
"tl_strikethrough": "取り消し線",
"tl_mark": "蛍光ペン",
"tl_superscript": "上付き文字",
"tl_subscript": "下付き文字",
"tl_quote": "引用",
"tl_ol": "番号付きリスト",
"tl_ul": "箇条書きリスト",
"tl_link": "ハイパーリンク",
"tl_image": "画像のリンク",
"tl_code": "コードの挿入",
"tl_table": "表の挿入",
"tl_undo": "戻る",
"tl_redo": "進む",
"tl_trash": "削除",
"tl_save": "保存",
"tl_navigation_on": "ナビゲーションを表示",
"tl_navigation_off": "ナビゲーションを非表示",
"tl_preview": "プレビュー",
"tl_aligncenter": "中央揃え",
"tl_alignleft": "左揃え",
"tl_alignright": "右揃え",
"tl_edit": "編集",
"tl_single_column": "一列",
"tl_double_column": "二列",
"tl_fullscreen_on": "全画面表示",
"tl_fullscreen_off": "全画面表示の終了",
"tl_read": "モデルの読み込み",
"tl_html_on": "HTMLで表示",
"tl_html_off": "HTML表示の終了",
"tl_help": "ヘルプ",
"tl_upload": "画像をアップロード",
"tl_upload_remove": "画像の削除",
"tl_popup_link_title": "リンクの追加",
"tl_popup_link_text": "リンクテキスト",
"tl_popup_link_addr": "リンク先のURL",
"tl_popup_img_link_title": "画像の追加",
"tl_popup_img_link_text": "画像タイトル",
"tl_popup_img_link_addr": "画像URL",
"tl_popup_link_sure": "OK",
"tl_popup_link_cancel": "戻る"
}
Guia Markdown
===
> Detalhes: [http://commonmark.org/help/](http://commonmark.org/help/)
## **Negrito**
```
**negrito**
__negrito__
```
## *Itálico*
```
*itálico*
_itálico_
```
## Cabeçalho
```
# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######
```
## Linha Divisora
```
***
---
```
****
## ^Sobre^scrito & ~Sub~scrito
```
sobre x^2^
sub H~2~0
```
## ++Sublinhar++ & ~~Tachar~~
```
++sublinhar++
~~tachar~~
```
## ==Marcador==
```
==marcador==
```
## Citação
```
> citação 1
>> citação 2
>>> citação 3
...
```
## Listas
```
lista Numerada
1.
2.
3.
...
lista com marcadores
-
-
...
```
## Todo Listas
- [x] Tarefa 1
- [ ] Tarefa 2
```
- [x] Tarefa 1
- [ ] Tarefa 2
```
## Link
```
Link Texto
[Text](www.baidu.com)
Link Imagem
![Text](http://www.image.com)
```
## Código
\``` tipo
bloco de código
\```
\` código \`
```c++
int main()
{
printf("hello world!");
}
```
`code`
## Tabela
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| esquerda | centro | direita |
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| esquerda | centro | direita |
| ---------------------- | ------------- | ----------------- |
## Rodapé
```
olá[^olá]
```
Olhe para baixo[^olá]
[^olá]: rodapé
## Emojis
Detalhes: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)
## $\KaTeX$ Mathematics
Podemos mostrar fórmulas por exemplo:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$
Podemos também mostrar em uma única linha:
$$\sum_{i=1}^n a_i=0$$
Detalhes: [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)[katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)
## Layout
::: hljs-left
`::: hljs-left`
`esquerda`
`:::`
:::
::: hljs-center
`::: hljs-center`
`centro`
`:::`
:::
::: hljs-right
`::: hljs-right`
`direita`
`:::`
:::
## Definições
Termo 1
: Definição 1
Termo 2 com *markup inline*
: Definição 2
{ um pouco de código, parte da Definição 2 }
Terceiro parágrafo da definição 2.
```
Termo 1
: Definição 1
Termo 2 com *markup inline*
: Definição 2
{ um pouco de código, parte da Definição 2 }
Terceiro parágrafo da definição 2.
```
## Abreviações
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
A especificação HTML
é mantida pela W3C.
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
é mantida pela W3C.
```
{
"start_editor": "Começar edição...",
"navigation_title": "Navegação",
"tl_bold": "Negrito",
"tl_italic": "Itálico",
"tl_header": "Cabeçalho",
"tl_header_one": "Cabeçalho 1",
"tl_header_two": "Cabeçalho 2",
"tl_header_three": "Cabeçalho 3",
"tl_header_four": "Cabeçalho 4",
"tl_header_five": "Cabeçalho 5",
"tl_header_six": "Cabeçalho 6",
"tl_underline": "Sublinhar",
"tl_strikethrough": "Tachar",
"tl_mark": "Marcação",
"tl_superscript": "Sobrescrito",
"tl_subscript": "Subscrito",
"tl_quote": "Citação",
"tl_ol": "Lista Numerada",
"tl_ul": "Lista com marcadores",
"tl_link": "Link",
"tl_image": "Link de imagem",
"tl_code": "Código",
"tl_table": "Tabela",
"tl_undo": "Desfazer",
"tl_redo": "Refazer",
"tl_trash": "Lixo",
"tl_save": "Salvar",
"tl_navigation_on": "Mostrar Navegação",
"tl_navigation_off": "Esconder Navegação",
"tl_preview": "Preview",
"tl_aligncenter": "Alinhar no centro",
"tl_alignleft": "Alinhar à esquerda",
"tl_alignright": "Alinhar à direita",
"tl_edit": "Editar",
"tl_single_column": "Coluna Única",
"tl_double_column": "Duas Colunas",
"tl_fullscreen_on": "Ligar Tela Cheia",
"tl_fullscreen_off": "Desligar Tela Cheia",
"tl_read": "Modo de Leitura",
"tl_html_on": "Ligar HTML",
"tl_html_off": "Desligar HTML",
"tl_help": "Guia Markdown",
"tl_upload": "Upload de Imagens",
"tl_upload_remove": "Remover",
"tl_popup_link_title": "Adicionar Link",
"tl_popup_link_text": "Descrição",
"tl_popup_link_addr": "Link",
"tl_popup_img_link_title": "Adicionar fotos",
"tl_popup_img_link_text": "Descrição",
"tl_popup_img_link_addr": "Link",
"tl_popup_link_sure": "Confirmar",
"tl_popup_link_cancel": "Cancelar"
}
\ No newline at end of file
Markdown помощь
===
> Подробнее: [http://commonmark.org/help/](http://commonmark.org/help/)
## **Полужирный**
```
**Полужирный**
__Полужирный__
```
## *Курсив*
```
*Курсив*
_Курсив_
```
## Заголовок
```
# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######
```
## Разделительная линия
```
***
---
```
****
## ^Верхний^индекс & ~Нижний~индекс
```
верхний x^2^
нижний H~2~0
```
## ++Подчеркнутый++ & ~~Зачеркнутый~~
```
++Подчеркнутый++
~~Зачеркнутый~~
```
## ==Отметка==
```
==Отметка==
```
## Цитата
```
> Цитата
>> Цитата 2
>>> Цитата 3
...
```
## Список
```
ol
1.
2.
3.
...
ul
-
-
...
```
## Список задач
- [x] Задача 1
- [ ] Задача 2
```
- [x] Задача 1
- [ ] Задача 2
```
## Ссылка
```
Ссылка
[Текст](www.baidu.com)
Ссылка изображения
![Текст](http://www.image.com)
```
## Код
\``` type
code block
\```
\` code \`
```c++
int main()
{
printf("hello world!");}
```
`code`
## Таблица
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| left | center | right |
| ---------------------- | ------------- | ----------------- |
## Сноска
```
Привет[^Привет]
```
Тут что-то непонятное[^Привет]
[^Привет]: А тут объяснение
## Emojis
Подробнее: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)
## $\KaTeX$ Mathematics
Можно выводить такие формулы:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$
А также в одну строку:
$$\sum_{i=1}^n a_i=0$$
Подробнее:
- [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)
- [katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)
- [latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)
## Разметка
::: hljs-left
`::: hljs-left`
`left`
`:::`
:::
::: hljs-center
`::: hljs-center`
`center`
`:::`
:::
::: hljs-right
`::: hljs-right`
`right`
`:::`
:::
## Список определений
Термин 1
: Определение 1
Термин 2 с использованием *разметки*
: Определение 2
{ Какой-нибудь код, часть определения 2 }
Третий параграф определения 2.
```
Термин 1
: Определение 1
Термин 2 с использованием *разметки*
: Определение 2
{ Какой-нибудь код, часть определения 2 }
Третий параграф определения 2.
```
## Сокращения
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
{
"start_editor": "Начните редактирование...",
"navigation_title": "Навигация",
"tl_bold": "Полужирный",
"tl_italic": "Курсив",
"tl_header": "Заголовки",
"tl_header_one": "Заголовок 1",
"tl_header_two": "Заголовок 2",
"tl_header_three": "Заголовок 3",
"tl_header_four": "Заголовок 4",
"tl_header_five": "Заголовок 5",
"tl_header_six": "Заголовок 6",
"tl_underline": "Подчеркнутый",
"tl_strikethrough": "Зачеркнутый",
"tl_mark": "Отметка",
"tl_superscript": "Верхний индекс",
"tl_subscript": "Нижний индекс",
"tl_quote": "Цитата",
"tl_ol": "Нумерованный список",
"tl_ul": "Список",
"tl_link": "Ссылка",
"tl_image": "Ссылка изображения",
"tl_code": "Код",
"tl_table": "Таблица",
"tl_undo": "Отменить",
"tl_redo": "Вернуть",
"tl_trash": "Удалить",
"tl_save": "Сохранить",
"tl_navigation_on": "Показать навигацию",
"tl_navigation_off": "Скрыть навигацию",
"tl_preview": "Предпросмотр",
"tl_aligncenter": "Выровнять по центру",
"tl_alignleft": "Выровнять по левому краю",
"tl_alignright": "Выровнять по правому краю",
"tl_edit": "Редактор",
"tl_single_column": "Одно поле",
"tl_double_column": "Два поля",
"tl_fullscreen_on": "Полноэкранный режим",
"tl_fullscreen_off": "Выключить полноэкранный режим",
"tl_read": "Режим чтения",
"tl_html_on": "Показать HTML",
"tl_html_off": "Убрать HTML",
"tl_help": "Markdown помощь",
"tl_upload": "Загрузить изображение",
"tl_upload_remove": "Удалить",
"tl_popup_link_title": "Добавить ссылку",
"tl_popup_link_text": "Текст ссылки",
"tl_popup_link_addr": "Адрес ссылки",
"tl_popup_img_link_title": "Локальное изображение",
"tl_popup_img_link_text": "Текст изображения",
"tl_popup_img_link_addr": "Ссылка изображения",
"tl_popup_link_sure": "Добавить",
"tl_popup_link_cancel": "Отменить"
}
Markdown 语法简介
=============
> [语法详解](http://commonmark.org/help/)
## **粗体**
```
**粗体**
__粗体__
```
## *斜体*
```
*斜体*
_斜体_
```
## 标题
```
# 一级标题 #
一级标题
====
## 二级标题 ##
二级标题
----
### 三级标题 ###
#### 四级标题 ####
##### 五级标题 #####
###### 六级标题 ######
```
## 分割线
```
***
---
```
****
## ^上^角~下~标
```
上角标 x^2^
下角标 H~2~0
```
## ++下划线++ ~~中划线~~
```
++下划线++
~~中划线~~
```
## ==标记==
```
==标记==
```
## 段落引用
```
> 一级
>> 二级
>>> 三级
...
```
## 列表
```
有序列表
1.
2.
3.
...
无序列表
-
-
...
```
## 任务列表
- [x] 已完成任务
- [ ] 未完成任务
```
- [x] 已完成任务
- [ ] 未完成任务
```
## 链接
```
[链接](www.baidu.com)
![图片描述](http://www.image.com)
```
## 代码段落
\``` type
代码段落
\```
\` 代码块 \`
```c++
int main()
{
printf("hello world!");
}
```
`code`
## 表格(table)
```
| 标题1 | 标题2 | 标题3 |
| :-- | :--: | ----: |
| 左对齐 | 居中 | 右对齐 |
| ---------------------- | ------------- | ----------------- |
```
| 标题1 | 标题2 | 标题3 |
| :-- | :--: | ----: |
| 左对齐 | 居中 | 右对齐 |
| ---------------------- | ------------- | ----------------- |
## 脚注(footnote)
```
hello[^hello]
```
见底部脚注[^hello]
[^hello]: 一个注脚
## 表情(emoji)
[参考网站: https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)
## $\KaTeX$公式
我们可以渲染公式例如:$x_i + y_i = z_i$和$\sum_{i=1}^n a_i=0$
我们也可以单行渲染
$$\sum_{i=1}^n a_i=0$$
具体可参照[katex文档](http://www.intmath.com/cg5/katex-mathjax-comparison.php)[katex支持的函数](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex文档](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)
## 布局
::: hljs-left
`::: hljs-left`
`居左`
`:::`
:::
::: hljs-center
`::: hljs-center`
`居中`
`:::`
:::
::: hljs-right
`::: hljs-right`
`居右`
`:::`
:::
## 定义
术语一
: 定义一
包含有*行内标记*的术语二
: 定义二
{一些定义二的文字或代码}
定义二的第三段
```
术语一
: 定义一
包含有*行内标记*的术语二
: 定义二
{一些定义二的文字或代码}
定义二的第三段
```
## abbr
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
HTML 规范由 W3C 维护
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
HTML 规范由 W3C 维护
```
{
"start_editor": "开始编辑...",
"navigation_title": "导航目录",
"tl_bold": "粗体",
"tl_italic": "斜体",
"tl_header": "标题",
"tl_header_one": "一级标题",
"tl_header_two": "二级标题",
"tl_header_three": "三级标题",
"tl_header_four": "四级标题",
"tl_header_five": "五级标题",
"tl_header_six": "六级标题",
"tl_underline": "下划线",
"tl_strikethrough": "中划线",
"tl_mark": "标记",
"tl_superscript": "上角标",
"tl_subscript": "下角标",
"tl_quote": "段落引用",
"tl_ol": "有序列表",
"tl_ul": "无序列表",
"tl_link": "链接",
"tl_image": "添加图片链接",
"tl_code": "代码块",
"tl_table": "表格",
"tl_undo": "上一步",
"tl_redo": "下一步",
"tl_trash": "清空",
"tl_save": "保存",
"tl_navigation_on": "开启标题导航",
"tl_navigation_off": "关闭标题导航",
"tl_preview": "预览",
"tl_aligncenter": "居中",
"tl_alignleft": "居左",
"tl_alignright": "居右",
"tl_edit": "编辑",
"tl_single_column": "单栏",
"tl_double_column": "双栏",
"tl_fullscreen_on": "全屏编辑",
"tl_fullscreen_off": "退出全屏",
"tl_read": "沉浸式阅读",
"tl_html_on": "查看html文本",
"tl_html_off": "返回markdown文本",
"tl_help": "markdown语法帮助",
"tl_upload": "上传图片",
"tl_upload_remove": "删除",
"tl_popup_link_title": "添加链接",
"tl_popup_link_text": "链接描述",
"tl_popup_link_addr": "链接地址",
"tl_popup_img_link_title": "添加图片",
"tl_popup_img_link_text": "图片描述",
"tl_popup_img_link_addr": "图片链接",
"tl_popup_link_sure": "确定",
"tl_popup_link_cancel": "取消"
}
/**
* @Author: HuaChao Chen <CHC>
* @Date: 2017-05-03T01:23:38+08:00
* @Email: chenhuachaoxyz@gmail.com
* @Filename: toolbar_left_click.js
* @Last modified by: CHC
* @Last modified time: 2017-08-10T12:43:22+08:00
* @License: MIT
* @Copyright: 2017
*/
function $toolbar_left_undo_click($vm) {
if ($vm.d_history_index > 0) {
$vm.d_history_index--
}
// $vm.$refs.vNoteDivEdit.innerHTML = $vm.s_markdown.render($vm.d_value)
if ($vm.s_preview_switch) {
let start = $vm.getTextareaDom().selectionStart
let currentLength = $vm.d_value.length
$vm.$nextTick(() => {
// 光标操作
start -= currentLength - $vm.d_value.length
$vm.getTextareaDom().selectionStart = start
$vm.getTextareaDom().selectionEnd = start
})
}
$vm.getTextareaDom().focus()
}
// redo
function $toolbar_left_redo_click($vm) {
if ($vm.d_history_index < $vm.d_history.length - 1) {
$vm.d_history_index++
}
$vm.getTextareaDom().focus()
// $vm.$refs.vNoteDivEdit.innerHTML = $vm.s_markdown.render($vm.d_value)
}
function $toolbar_left_trash_click($vm) {
$vm.d_value = ''
$vm.getTextareaDom().focus()
// $vm.$refs.vNoteDivEdit.innerHTML = $vm.s_markdown.render($vm.d_value)
}
function $toolbar_left_save_click($vm) {
$vm.save($vm.d_value, $vm.d_render)
}
// ol
function $toolbar_left_ol_click($vm) {
$vm.insertOl()
}
// ul
function $toolbar_left_ul_click($vm) {
$vm.insertUl()
}
function $toolbar_left_remove_line_click($vm) {
$vm.removeLine()
}
// 直接添加链接
export const toolbar_left_addlink = (type, text, link, $vm) => {
let insert_text = {
prefix: type === 'link' ? `[${text}](` : `![${text}](`,
subfix: ')',
str: link
};
$vm.insertText($vm.getTextareaDom(), insert_text);
}
export const toolbar_left_click = (_type, $vm) => {
var _param_of_insert_text = {
'bold': {
prefix: '**',
subfix: '**',
str: $vm.d_words.tl_bold
},
'italic': {
prefix: '*',
subfix: '*',
str: $vm.d_words.tl_italic
},
'header': {
prefix: '# ',
subfix: '',
str: $vm.d_words.tl_header
},
'header1': {
prefix: '# ',
subfix: '',
str: $vm.d_words.tl_header_one
},
'header2': {
prefix: '## ',
subfix: '',
str: $vm.d_words.tl_header_two
},
'header3': {
prefix: '### ',
subfix: '',
str: $vm.d_words.tl_header_three
},
'header4': {
prefix: '#### ',
subfix: '',
str: $vm.d_words.tl_header_four
},
'header5': {
prefix: '##### ',
subfix: '',
str: $vm.d_words.tl_header_five
},
'header6': {
prefix: '###### ',
subfix: '',
str: $vm.d_words.tl_header_six
},
'underline': {
prefix: '++',
subfix: '++',
str: $vm.d_words.tl_underline
},
'strikethrough': {
prefix: '~~',
subfix: '~~',
str: $vm.d_words.tl_strikethrough
},
'mark': {
prefix: '==',
subfix: '==',
str: $vm.d_words.tl_mark
},
'superscript': {
prefix: '^',
subfix: '^',
str: $vm.d_words.tl_superscript
},
'subscript': {
prefix: '~',
subfix: '~',
str: $vm.d_words.tl_subscript
},
'quote': {
prefix: '> ',
subfix: '',
str: $vm.d_words.tl_quote
},
'link': {
prefix: '[](',
subfix: ')',
str: $vm.d_words.tl_link
},
'imagelink': {
prefix: '![](',
subfix: ')',
str: $vm.d_words.tl_image
},
'code': {
prefix: '```',
subfix: '\n\n```\n',
str: 'language'
},
'table': {
prefix: '',
subfix: '',
str: '|column1|column2|column3|\n|-|-|-|\n|content1|content2|content3|\n'
},
'aligncenter': {
prefix: '::: hljs-center\n\n',
subfix: '\n\n:::\n',
str: $vm.d_words.tl_aligncenter
},
'alignright': {
prefix: '::: hljs-right\n\n',
subfix: '\n\n:::\n',
str: $vm.d_words.tl_alignright
},
'alignleft': {
prefix: '::: hljs-left\n\n',
subfix: '\n\n:::\n',
str: $vm.d_words.tl_alignleft
}
};
if (_param_of_insert_text.hasOwnProperty(_type)) {
// 插入对应的内容
$vm.insertText($vm.getTextareaDom(),
_param_of_insert_text[_type]);
}
var _other_left_click = {
'undo': $toolbar_left_undo_click,
'redo': $toolbar_left_redo_click,
'trash': $toolbar_left_trash_click,
'save': $toolbar_left_save_click,
'ol': $toolbar_left_ol_click,
'ul': $toolbar_left_ul_click,
'removeLine': $toolbar_left_remove_line_click
};
if (_other_left_click.hasOwnProperty(_type)) {
_other_left_click[_type]($vm);
}
}
/**
* @Author: HuaChao Chen <CHC>
* @Date: 2017-05-03T01:39:47+08:00
* @Email: chenhuachaoxyz@gmail.com
* @Filename: toolbar_right_click.js
* @Last modified by: chc
* @Last modified time: 2017-06-08T12:44:50+08:00
* @License: MIT
* @Copyright: 2017
*/
function $toolbar_right_html_click($vm) {
$vm.s_html_code = !$vm.s_html_code
if ($vm.htmlcode) {
$vm.htmlcode($vm.s_html_code, $vm.d_value)
}
}
function $toolbar_right_help_click($vm) {
$vm.s_help = !$vm.s_help
if ($vm.helptoggle) {
$vm.helptoggle($vm.s_help, $vm.d_value)
}
}
// 导航
function $toolbar_right_read_click($vm) {
let element = $vm.$refs.vReadModel
// 单栏编辑
if (element.requestFullscreen) {
element.requestFullscreen();
} else if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullscreen) {
element.webkitRequestFullscreen();
} else if (element.msRequestFullscreen) {
element.msRequestFullscreen();
}
}
function $toolbar_right_preview_click($vm) {
$vm.s_preview_switch = !$vm.s_preview_switch
// $vm.$refs.vNoteDivEdit.innerHTML = $vm.s_markdown.render($vm.d_value)
if ($vm.previewtoggle) {
$vm.previewtoggle($vm.s_preview_switch, $vm.d_value)
}
}
function $toolbar_right_fullscreen_click($vm) {
$vm.s_fullScreen = !$vm.s_fullScreen
if ($vm.fullscreen) {
$vm.fullscreen($vm.s_fullScreen, $vm.d_value)
}
}
function $toolbar_right_subfield_click ($vm) {
$vm.s_subfield = !$vm.s_subfield
$vm.s_preview_switch = $vm.s_subfield;
// $vm.$refs.vNoteDivEdit.innerHTML = $vm.s_markdown.render($vm.d_value)
if ($vm.previewtoggle) {
$vm.previewtoggle($vm.s_preview_switch, $vm.d_value)
}
// $vm.$refs.vNoteDivEdit.innerHTML = $vm.s_markdown.render($vm.d_value)
if ($vm.subfieldtoggle) {
$vm.subfieldtoggle($vm.s_subfield, $vm.d_value)
}
}
function $toolbar_right_navigation_click($vm) {
$vm.s_navigation = !$vm.s_navigation
if ($vm.s_navigation) {
$vm.s_preview_switch = true;
}
if ($vm.navigationtoggle) {
$vm.navigationtoggle($vm.s_navigation, $vm.d_value)
}
if ($vm.s_navigation) {
// 绘制标题导航
$vm.getNavigation($vm, false)
}
}
export const toolbar_right_click = (_type, $vm) => {
var _other_right_click = {
'help': $toolbar_right_help_click,
'html': $toolbar_right_html_click,
'read': $toolbar_right_read_click,
'preview': $toolbar_right_preview_click,
'fullscreen': $toolbar_right_fullscreen_click,
'navigation': $toolbar_right_navigation_click,
'subfield': $toolbar_right_subfield_click
}
if (_other_right_click.hasOwnProperty(_type)) {
_other_right_click[_type]($vm);
}
}
/**
* Created by zhy on 2016/12/25.
*/
/**
* 深度拷贝对象
* @param target
* @param arg
* @returns {*}
* @constructor
*/
export function p_ObjectCopy_DEEP(target, arg) {
for (let arg_item in arg) {
let type = typeof arg[arg_item];
if (!target[arg_item] || (type !== 'Object' && type !== 'object')) {
target[arg_item] = arg[arg_item];
continue;
} else {
target[arg_item] = p_ObjectCopy_DEEP(target[arg_item], arg[arg_item]);
}
}
return target;
};
/**
* 解析url参数
*/
export function p_urlParse() {
let url = window.location.search;
let obj = {};
let reg = /[?&][^?&]+=[^?&]+/g;
let arr = url.match(reg);
if (arr) {
arr.forEach((item) => {
let tempArr = item.substring(1).split('=');
let key = decodeURIComponent(tempArr[0]);
let val = decodeURIComponent(tempArr[1]);
obj[key] = val;
})
}
return obj;
};
export function stopEvent(e) {
if (!e) {
return;
}
if (e.preventDefault) {
e.preventDefault();
}
if (e.stopPropagation) {
e.stopPropagation();
}
};
......@@ -16,7 +16,7 @@
<!-- <p>{{floor}}</p>-->
</div>
<p class="comment-box" v-if="type!=='question'">{{info.comment}}</p>
<p class="comment-box" v-if="type==='question'">{{info.reply}}</p>
<p class="comment-box" v-if="type==='question'" v-html="returnReplyHtml"></p>
<div class="footer">
<h6>{{dateConvert2}}</h6>
<p>
......@@ -127,6 +127,13 @@
},
returnlikeWordClass(){
return this.praised?'likeActive':'like'
},
returnReplyHtml(){
let html = this.info.reply;
let reg = /<[^>]+>/g;
let str = html.replace(/<\/?(?!img\b|br\b)\w+\b[^<>]*>/g,"");
return str
}
},
......@@ -162,6 +169,7 @@
}
},
methods:{
dataPostComment1(){
if(!this.$store.state.auth.token){
this.$message({
......
......@@ -159,7 +159,7 @@
this.cardType = 2;
this.status = info.status;
this.praiseNum =info.praiseNum;
this.priority = info.priority;
this.priority = info.priority||info.categoryPriority;
}
if(this.info.projectId){
......@@ -175,7 +175,7 @@
this.cardType = 1;
this.status = info.status;
this.praiseNum =info.praiseNum;
this.priority = info.priority;
this.priority = info.priority||info.categoryPriority;
}
......
......@@ -79,10 +79,9 @@
</div>
<div class="bottom__r">
<!-- <div class="select-box">-->
<!-- <p>公开</p>-->
<!-- <yun-icon name="down_arrow" size="6px" color="#999" pb="1px"></yun-icon>-->
<!-- </div>-->
<div class="select-box" v-if="delayContent">
<p>该动态将在{{delayTime}}分钟后发布</p>
</div>
<p class="send-box" @click="dataPostContent">
发布
......@@ -177,6 +176,8 @@
showCoverUploadP:false,
topicList:[],
addingPic:false,
delayTime:0,
delayContent:false,
}
},
computed:{
......@@ -189,6 +190,20 @@
}else{
this.TopicValue = '';
}
},
releaseWord(val){
let reg = /delay\([0-9]+\);$/;
if(reg.test(val)){
let func = val.match(reg)[0];
let numReg = /\d+/;
let num = func.match(numReg)[0];
this.delayContent = true;
this.delayTime = Number(num);
}else{
this.delayContent = false;
this.delayTime = 0;
}
}
},
......@@ -228,7 +243,6 @@
this.imgArr = [...arr1,...arr2]
},
changeToUploadCover(e){
console.log(e.target);
//let file = e.target.files[0];
//上传函数
......@@ -418,6 +432,7 @@
return false;
}
if(this.initWord){
this.releaseWord ='#'+ this.initWord +'#'+this.releaseWord;
}
......@@ -644,7 +659,7 @@
@extend %flex-row-spb;
p{
@include fontStyle(14,19,500,#999,center);
@include fontStyle(12,19,500,#dc8a7d,center);
margin-right:8*$length;
}
......
......@@ -135,7 +135,6 @@
YunVideo,
Banner,Dropdown,CommentCon
},
props:{
info:{
type:Object,
......@@ -150,7 +149,6 @@
default:false
}
},
data(){
//return
......@@ -182,9 +180,6 @@
showPraiseCon:true,
}
},
computed:{
imgArr2(){
let imgArr = this.pictures;
......@@ -251,8 +246,6 @@
return this.showPraiseCon?'icon__active':'icon'
}
},
created(){
this.dateGet2Info();
this.dataGetPraiseList();
......@@ -282,7 +275,6 @@
});
window.open(routeUrl.href,'_blank')
},
dataGet2ComNum(n){
this.commentNumber = this.commentNumber +n
},
......@@ -317,7 +309,6 @@
this.praised = info.praised;
}
},
showAlert(id){
this.$alert('确认删除?', '', {
confirmButtonText: '确定',
......@@ -367,7 +358,6 @@
})
},
clickToPraise(){
if(this.praised){
this.dataDeletePraise();
......@@ -376,7 +366,6 @@
}
},
dataGetPraiseList(){
this.$axios.$get(config.api.post.PostPraise.praise+this.postId+'/praises',{
params:{
......@@ -409,7 +398,6 @@
})
},
dataPostPraise(){
this.$axios.$post(config.api.post.PostPraise.praise+this.postId+'/praise').then((response)=>{
......@@ -430,7 +418,6 @@
})
},
dataDeletePraise(){
this.$axios.$delete(config.api.delete.PostPraise.praise+this.postId+'/praise').then((response)=>{
if(response.code===0){
......
......@@ -29,7 +29,8 @@ module.exports = {
** Global CSS
*/
css: [
'~/assets/font/iconfont.css'
'~/assets/font/iconfont.css',
'~/assets/reset.scss',
],
pageTransition: {
name: 'fade',
......@@ -58,7 +59,7 @@ module.exports = {
{src:'~/plugins/yunAvatar.js',ssr:true},
{src:'~/plugins/yunInput.js',ssr:true},
{src:'~/plugins/yunVideo.js',ssr:false},
{src:'~/plugins/yunTextarea.js',ssr:true},
{src:'~/plugins/yunTextarea.js',ssr:false},
{src:'~/plugins/yunEditor.js',ssr:false},
],
/*
......@@ -96,6 +97,12 @@ module.exports = {
scss: './assets/base.scss'
},
extend (config, ctx) {
config.module.rules.push(
{
test: /\.md$/,
loader: 'raw-loader'
},
)
}
}
}
......@@ -19,8 +19,24 @@
"highlight.js": "^9.18.1",
"js-cookie": "^2.2.1",
"koa": "^2.6.2",
"markdown-it": "^10.0.0",
"markdown-it-abbr": "^1.0.4",
"markdown-it-container": "^2.0.0",
"markdown-it-deflist": "^2.0.3",
"markdown-it-emoji": "^1.4.0",
"markdown-it-footnote": "^3.0.2",
"markdown-it-highlightjs-external": "^1.0.1",
"markdown-it-images-preview": "^1.0.1",
"markdown-it-ins": "^3.0.0",
"markdown-it-katex-external": "^1.0.0",
"markdown-it-mark": "^3.0.0",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"markdown-it-task-lists": "^2.1.1",
"markdown-it-toc": "^1.1.0",
"mavon-editor": "^2.7.7",
"nuxt": "^2.0.0",
"raw-loader": "^4.0.0",
"vue-cropper": "^0.4.9",
"vue-notification": "^1.3.20",
"vue-socket.io": "^3.0.7"
......
......@@ -50,6 +50,12 @@
async asyncData ({ $axios }) {
let hotBlogList = await $axios.$get(config.api.get.Blog.hotList, {params:{
page:1,
size:20
}})
let projectList = await $axios.$get(config.api.get.Project.hotList,{
params:{
page:1,
......@@ -75,6 +81,7 @@
})
return {
blogList:hotBlogList.data.dataList,
projectList:projectList.data.dataList,
bannerList:bannerList.data.dataList,
newsList:newsList.data.dataList}
......@@ -127,19 +134,14 @@
dataGetBlogList(currentPage){
this.paginationState = 'loading';
let params={
page:currentPage,
size:20
};
if(this.$route.query.type && this.$route.query.type!=='all' ){
params.categoryId = this.$route.query.type
}
this.$axios.$get(config.api.get.Blog.hotList, {params:params})
.then((response)=>{
this.paginationState = 'over';
this.pages = response.data.totalPage;
if(currentPage===1){
this.blogList = response.data.dataList;
this.pages = response.data.totalPage;
......@@ -147,10 +149,8 @@
let list = response.data.dataList;
for(let i = 0;i<list.length;i++){
this.blogList.push(list[i]);
}
}
})
},
......
......@@ -3591,7 +3591,7 @@ entities@^1.1.1:
resolved "https://registry.npm.taobao.org/entities/download/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56"
integrity sha1-vfpzUplmTfr9NFKe1PhSKidf6lY=
entities@^2.0.0:
entities@^2.0.0, entities@~2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/entities/download/entities-2.0.0.tgz#68d6084cab1b079767540d80e56a39b423e4abf4"
integrity sha1-aNYITKsbB5dnVA2A5Wo5tCPkq/Q=
......@@ -5853,6 +5853,13 @@ levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"
linkify-it@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/linkify-it/-/linkify-it-2.2.0.tgz#e3b54697e78bf915c70a38acd78fd09e0058b1cf"
integrity sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==
dependencies:
uc.micro "^1.0.1"
load-json-file@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
......@@ -6059,6 +6066,87 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"
markdown-it-abbr@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/markdown-it-abbr/-/markdown-it-abbr-1.0.4.tgz#d66b5364521cbb3dd8aa59dadfba2fb6865c8fd8"
integrity sha1-1mtTZFIcuz3Yqlna37ovtoZcj9g=
markdown-it-container@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/markdown-it-container/-/markdown-it-container-2.0.0.tgz#0019b43fd02eefece2f1960a2895fba81a404695"
integrity sha1-ABm0P9Au7+zi8ZYKKJX7qBpARpU=
markdown-it-deflist@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/markdown-it-deflist/-/markdown-it-deflist-2.0.3.tgz#5727db04184d3cb2bc6ee4a9641e3a1091d5fd6f"
integrity sha512-/BNZ8ksW42bflm1qQLnRI09oqU2847Z7MVavrR0MORyKLtiUYOMpwtlAfMSZAQU9UCvaUZMpgVAqoS3vpToJxw==
markdown-it-emoji@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/markdown-it-emoji/-/markdown-it-emoji-1.4.0.tgz#9bee0e9a990a963ba96df6980c4fddb05dfb4dcc"
integrity sha1-m+4OmpkKljupbfaYDE/dsF37Tcw=
markdown-it-footnote@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/markdown-it-footnote/-/markdown-it-footnote-3.0.2.tgz#1575ee7a093648d4e096aa33386b058d92ac8bc1"
integrity sha512-JVW6fCmZWjvMdDQSbOT3nnOQtd9iAXmw7hTSh26+v42BnvXeVyGMDBm5b/EZocMed2MbCAHiTX632vY0FyGB8A==
markdown-it-highlightjs-external@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/markdown-it-highlightjs-external/-/markdown-it-highlightjs-external-1.0.1.tgz#8595fd4b0207ec429c93341f996637fa31da2d53"
integrity sha512-qkbrcWVhSmUzUmLNQBWDU1k/tHhhqPTRLXs54BIwk5L0N2RXj95jOt9wu78ehc/fpCX7bb/OHXtkBkavGkbcPQ==
markdown-it-images-preview@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/markdown-it-images-preview/-/markdown-it-images-preview-1.0.1.tgz#17d6eb8491cccd2343d4e4419a1abe9ca43c0bbb"
integrity sha1-F9brhJHMzSND1ORBmhq+nKQ8C7s=
markdown-it-ins@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/markdown-it-ins/-/markdown-it-ins-3.0.0.tgz#b1b56824c78dc66e52b0fc97531b317cd78d79d2"
integrity sha512-+vyAdBuMGwmT2yMlAFJSx2VR/0QZ1onQ/Mkkmr4l9tDFOh5sVoAgRbkgbuSsk+sxJ9vaMH/IQ323ydfvQrPO/Q==
markdown-it-katex-external@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/markdown-it-katex-external/-/markdown-it-katex-external-1.0.0.tgz#78d1786d94df8650e0bea79ffbc0b1f03fd7c606"
integrity sha1-eNF4bZTfhlDgvqef+8Cx8D/XxgY=
markdown-it-mark@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/markdown-it-mark/-/markdown-it-mark-3.0.0.tgz#27c3e39ef3cc310b2dde5375082c9fa912983cda"
integrity sha512-HqMWeKfMMOu4zBO0emmxsoMWmbf2cPKZY1wP6FsTbKmicFfp5y4L3KXAsNeO1rM6NTJVOrNlLKMPjWzriBGspw==
markdown-it-sub@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/markdown-it-sub/-/markdown-it-sub-1.0.0.tgz#375fd6026eae7ddcb012497f6411195ea1e3afe8"
integrity sha1-N1/WAm6ufdywEkl/ZBEZXqHjr+g=
markdown-it-sup@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/markdown-it-sup/-/markdown-it-sup-1.0.0.tgz#cb9c9ff91a5255ac08f3fd3d63286e15df0a1fc3"
integrity sha1-y5yf+RpSVawI8/09YyhuFd8KH8M=
markdown-it-task-lists@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/markdown-it-task-lists/-/markdown-it-task-lists-2.1.1.tgz#f68f4d2ac2bad5a2c373ba93081a1a6848417088"
integrity sha512-TxFAc76Jnhb2OUu+n3yz9RMu4CwGfaT788br6HhEDlvWfdeJcLUsxk1Hgw2yJio0OXsxv7pyIPmvECY7bMbluA==
markdown-it-toc@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/markdown-it-toc/-/markdown-it-toc-1.1.0.tgz#6d189858e32b3deb4ff3ad2713fa927439c957e0"
integrity sha1-bRiYWOMrPetP860nE/qSdDnJV+A=
markdown-it@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-10.0.0.tgz#abfc64f141b1722d663402044e43927f1f50a8dc"
integrity sha512-YWOP1j7UbDNz+TumYP1kpwnP0aEa711cJjrAQrzd0UXlbJfc5aAq0F/PZHjiioqDC1NKgvIMX+o+9Bk7yuM2dg==
dependencies:
argparse "^1.0.7"
entities "~2.0.0"
linkify-it "^2.0.0"
mdurl "^1.0.1"
uc.micro "^1.0.5"
mavon-editor@^2.7.7:
version "2.7.7"
resolved "https://registry.yarnpkg.com/mavon-editor/-/mavon-editor-2.7.7.tgz#6b491caf6fababacb69883a5310dc8ad251f1c9e"
......@@ -6081,6 +6169,11 @@ mdn-data@2.0.4:
resolved "https://registry.npm.taobao.org/mdn-data/download/mdn-data-2.0.4.tgz?cache=0&sync_timestamp=1573816302294&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmdn-data%2Fdownload%2Fmdn-data-2.0.4.tgz#699b3c38ac6f1d728091a64650b65d388502fd5b"
integrity sha1-aZs8OKxvHXKAkaZGULZdOIUC/Vs=
mdurl@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"
integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=
media-typer@0.3.0:
version "0.3.0"
resolved "https://registry.npm.taobao.org/media-typer/download/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
......@@ -6502,10 +6595,10 @@ node-res@^5.0.1:
on-finished "^2.3.0"
vary "^1.1.2"
node-sass@^4.13.0:
version "4.13.0"
resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.13.0.tgz#b647288babdd6a1cb726de4545516b31f90da066"
integrity sha512-W1XBrvoJ1dy7VsvTAS5q1V45lREbTlZQqFbiHb3R3OTTCma0XBtuG6xZ6Z4506nR4lmHPTqVRwxT6KgtWC97CA==
node-sass@^4.13.1:
version "4.13.1"
resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.13.1.tgz#9db5689696bb2eec2c32b98bfea4c7a2e992d0a3"
integrity sha512-TTWFx+ZhyDx1Biiez2nB0L3YrCZ/8oHagaDalbuBSlqXgUPsdkUSzJsVxeDO9LtPB49+Fh3WQl3slABo6AotNw==
dependencies:
async-foreach "^0.1.3"
chalk "^1.1.1"
......@@ -8018,6 +8111,14 @@ raw-body@2.4.0:
iconv-lite "0.4.24"
unpipe "1.0.0"
raw-loader@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/raw-loader/-/raw-loader-4.0.0.tgz#d639c40fb9d72b5c7f8abc1fb2ddb25b29d3d540"
integrity sha512-iINUOYvl1cGEmfoaLjnZXt4bKfT2LJnZZib5N/LLyAphC+Dd11vNP9CNVb38j+SAJpFI1uo8j9frmih53ASy7Q==
dependencies:
loader-utils "^1.2.3"
schema-utils "^2.5.0"
rc@^1.0.1, rc@^1.1.6, rc@^1.2.7:
version "1.2.8"
resolved "https://registry.npm.taobao.org/rc/download/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
......@@ -9456,6 +9557,11 @@ ua-parser-js@^0.7.20:
resolved "https://registry.npm.taobao.org/ua-parser-js/download/ua-parser-js-0.7.20.tgz?cache=0&sync_timestamp=1569543592885&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fua-parser-js%2Fdownload%2Fua-parser-js-0.7.20.tgz#7527178b82f6a62a0f243d1f94fd30e3e3c21098"
integrity sha1-dScXi4L2pioPJD0flP0w4+PCEJg=
uc.micro@^1.0.1, uc.micro@^1.0.5:
version "1.0.6"
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==
uglify-js@3.4.x:
version "3.4.10"
resolved "https://registry.npm.taobao.org/uglify-js/download/uglify-js-3.4.10.tgz?cache=0&sync_timestamp=1574701612100&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuglify-js%2Fdownload%2Fuglify-js-3.4.10.tgz#9ad9563d8eb3acdfb8d38597d2af1d815f6a755f"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment