オンラインメニュー
設定
プレビュー(F5)
見出し同期(F2)
編集/閲覧(ESC)
保存(Ctrl+S)
ここをクリックしてCtrl+V(Cmd+V)するとクリップボードの画像を添付できます。
添付ファイルを表示(Alt+↓)
プレビューを隠す(Alt+→)
このファイルはJavaScriptを有効にするとより正確に表示できます。
# かんたんMarkdown * http://tatesuke.github.io/KanTanMarkdown/ にいくつかの改良をしました。 | 種類 | サイズ | url | 特徴 | |:--|:--|:--|:--| | ライト版 | 約90KB| [ktm-lite.html](http://tukiyo.github.io/program/KanTanMarkdown/ktm-lite.html) | syntax hilightなし | | 標準版 | 約160KB| [ktm-std.html](http://tukiyo.github.io/program/KanTanMarkdown/ktm-std.html) | syntax hilightあり | | フル版 | 約430KB| [ktm-full.html](http://tukiyo.github.io/program/KanTanMarkdown/ktm-full.html) | syntax hilightあり、図形描画あり | | 書き方サンプル | - | [sample.md](http://tukiyo.github.io/program/KanTanMarkdown/sample.md) | | ## 使い方 `Esc`キーを押すと編集画面、閲覧画面が切り替わります。 ## 特徴 ### 完全に単一のファイルで動く かんたんMarkdownは**完**全に**単**一のHTMLファイルで動作します。したがって、JavaScriptが動作するブラウザさえあればどこでもMarkdownを利用することができます。 ## シンタックスハイライト <f>シンタックイライト</f> ```java import java.util.*; public class FizzBuzz { public static void main(String[] args) { int a = new Scanner(System.in).nextInt(); System.out.println(a); } } ``` ## シーケンス図 * [js-sequence-diagrams](https://bramp.github.io/js-sequence-diagrams/) <f>シーケンス図</f> ```html <div class="sequence"> a->b:call </div> ``` <div class="sequence"> a->b:call </div> ## フローチャート * [flowchart.js](https://adrai.github.io/flowchart.js/) <f>フローチャート</f> ```html <div class="flow"> st=>start e=>end op1=>operation: execute st->op1->e </div> ``` <div class="flow"> st=>start e=>end op1=>operation: execute st->op1->e </div> ## 背景色 ### blue <p class="blue">blue</p> <f class=blue>青</f> ```html <p class="blue">blue</p> <p class="info">blue</p> ``` ### green <p class="green">green</p> <f class=green>緑</f> ```html <p class="green">green</p> <p class="success">green</p> ``` ### yellow <p class="yellow">yellow</p> <f class=yellow>黄</f> ```html <p class="yellow">yellow</p> <p class="warn">yellow</p> ``` ### red <p class="red">red</p> <f class=red>赤</f> ```html <p class="red">red</p> <p class="alert">red</p> ```
/* * CSSの設定を間違えると、最悪の場合 * 内容を編集できなくなるので注意してください。 * 標準のCSSに戻したいときはCSSを引き継がずに強制アップデートしてください * また、CSSの変更はプレビューしないと反映しません。 */ #leftNav { display: visible; } #rightNav { display: visible; } .previewMode #leftNav { display: none; } .previewMode #rightNav { display: none; } .previewMode #previewer { } @media (max-width: 770px) { #previewer { width:80vw } } @media (max-width: 480px) { #previewer { width:95vw } } #previewer { min-height: 98%; max-width: 800px; word-wrap: break-word; color: #575757; line-height: 1.9; background-color: white; padding: 3em 6em; margin-top: 1em; margin-bottom: 0.3em; /* アンチエイリアス */ transform: rotate(0.0001deg); /* 記事が浮き上がるように */ box-shadow: 0 2px 5px 0 rgba(0,0,0,.2) } #previewer > *:first-child { margin-top: 0 !important; } #previewer > *:last-child { margin-bottom: 0 !important; } .editMode #previewer { padding: 0em 1em; margin: 0; } html { font-size: 62.5%; } body { font-family: roboto, sans-serif; background-color: #f8f9fa; font-size: 1.4rem; color: #3B454E; } h2 { border-bottom: 1px; } #editor { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 14px; line-height: 1.5; color: rgb(34, 34, 34); padding: 0.5em 0.5em; } a { color: #4183C4; } a.absent { color: #cc0000; } a.anchor { display: block; padding-left: 30px; margin-left: -30px; cursor: pointer; position: absolute; top: 0; left: 0; bottom: 0; } h1, h2, h3, h4, h5, h6 { margin: 20px 0 10px; line-height:1.5; padding: 0; font-weight: bold; -webkit-font-smoothing: antialiased; cursor: text; position: relative; } h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor { background: url("para.png") no-repeat 10px center; text-decoration: none; } h1 { line-height:1.4; font-size: 32px; } h2 { font-size: 25px; border-bottom: 1px solid #cccccc; } h3 { font-size: 22px; } h4 { font-size: 16px; } h5 { font-size: 14px; } h6 { color: #777777; font-size: 14px; } p, blockquote, ul, ol, dl, li:first, table, pre { margin: 15px 0; } hr { background-color: #ddd; border: 0 none; height: 2px; padding: 0; } #previewer > h2:first-child { margin-top: 0; padding-top: 0; } #previewer > h1:first-child { margin-top: 0; padding-top: 0; } #previewer > h1:first-child + h2 { margin-top: 0; padding-top: 0; } #previewer > h3:first-child, #previewer > h4:first-child, #previewer > h5:first-child, #previewer > h6:first-child { margin-top: 0; padding-top: 0; } a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 { margin-top: 0; padding-top: 0; } h1 p, h2 p, h3 p, h4 p, h5 p, h6 p { margin-top: 0; } li p.first { display: inline-block; } ul, ol { padding-left: 30px; } ul:first-child, ol:first-child { margin-top: 0; } ul:last-child, ol:last-child { margin-bottom: 0; } dl { padding: 0; } dl dt { font-size: 14px; font-weight: bold; font-style: italic; padding: 0; margin: 15px 0 5px; } dl dt:first-child { padding: 0; } dl dt >:first-child { margin-top: 0; } dl dt >:last-child { margin-bottom: 0; } dl dd { margin: 0 0 15px; padding: 0 15px; } dl dd >:first-child { margin-top: 0; } dl dd >:last-child { margin-bottom: 0; } blockquote { border-left: 4px solid #dddddd; padding: 0 15px; color: #777777; } blockquote >:first-child { margin-top: 0; } blockquote >:last-child { margin-bottom: 0; } table { border-collapse: collapse; padding: 0; } table tr { border-top: 1px solid #cccccc; background-color: white; margin: 0; padding: 0; } table tr:nth-child(2n) { background-color: #f8f8f8; } table tr th { font-weight: bold; border: 1px solid #cccccc; text-align: left; margin: 0; padding: 6px 13px; } table tr td { border: 1px solid #cccccc; text-align: left; margin: 0; padding: 6px 13px; } table tr th:first-child, table tr td:first-child { margin-top: 0; } table tr th:last-child, table tr td:last-child { margin-bottom: 0; } img { max-width: 100%; } span.frame { display: block; overflow: hidden; } span.frame > span { border: 1px solid #dddddd; display: block; float: left; overflow: hidden; margin: 13px 0 0; padding: 7px; width: auto; } span.frame span img { display: block; float: left; } span.frame span span { clear: both; color: #3B454E; display: block; padding: 5px 0 0; } span.align-center { display: block; overflow: hidden; clear: both; } span.align-center > span { display: block; overflow: hidden; margin: 13px auto 0; text-align: center; } span.align-center span img { margin: 0 auto; text-align: center; } span.align-right { display: block; overflow: hidden; clear: both; } span.align-right > span { display: block; overflow: hidden; margin: 13px 0 0; text-align: right; } span.align-right span img { margin: 0; text-align: right; } span.float-left { display: block; margin-right: 13px; overflow: hidden; float: left; } span.float-left span { margin: 13px 0 0; } span.float-right { display: block; margin-left: 13px; overflow: hidden; float: right; } span.float-right > span { display: block; overflow: hidden; margin: 13px auto 0; text-align: right; } code, tt { margin: 0 2px; padding: 0 5px; white-space: nowrap; font-size: 13px; background-color: #f8f8f8; color: #d05; } pre code { margin: 0; padding: 0; white-space: pre-wrap; border: none; background: transparent; color: inherit; } .highlight pre { background-color: #f5f5f5; font-size: 13px; line-height: 19px; overflow: auto; padding: 6px 10px; } pre { background-color: #f5f5f5; color: #333; font-size: 12px; font-family: roboto, sans-serif; line-height: 1.42857143; overflow: auto; padding: 0.5em 1em; margin: .7em -1em; border-radius: 4px; } pre code, pre tt { background-color: transparent; border: none; } .sequence, .flow { overflow: auto; text-align:center; } p.info, p.warn, p.success, p.green, p.alert, p.blue, p.yellow, p.red { font-size: 14px; line-height: 19px; padding: .75rem 1.25rem; border-radius: .25rem; margin: 1rem 0px 1rem 0px;; } .info, .blue { color: #004085; background-color: #cce5ff; border: 1px solid #b8daff; } .success, .green { color: #437d5f; background-color: #dff0d8; border: 1px solid #cdeac1; } .warn, .yellow { color: #856404; background-color: #fff3cd; border: 1px solid #ffeeba; } .alert, .red { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; } @media print { nav { display: none; } #wrapper { overflow: visible; } #previewer { border: 0; width:100%; box-shadow: 0 0 black; } } /* START_CODE_TITLE */ f { display:inline; color: #333; background-color: #ddd; font-size: 0.8em; position: fixed; margin-top: -1.1em; margin-left: -1em; padding: 0 1em; } f + pre { margin-top: 0; } /* END_CODE_TITLE */ /* Original highlight.js style (c) Ivan Sagalaev <maniac@softwaremaniacs.org> */ .hljs { display: block; overflow-x: auto; padding: 0.5em; background: #F0F0F0; } /* Base color: saturation 0; */ .hljs, .hljs-subst { color: #444; } .hljs-comment { color: #888888; } .hljs-keyword, .hljs-attribute, .hljs-selector-tag, .hljs-meta-keyword, .hljs-doctag, .hljs-name { font-weight: bold; } /* User color: hue: 0 */ .hljs-type, .hljs-string, .hljs-number, .hljs-selector-id, .hljs-selector-class, .hljs-quote, .hljs-template-tag, .hljs-deletion { color: #880000; } .hljs-title, .hljs-section { color: #880000; font-weight: bold; } .hljs-regexp, .hljs-symbol, .hljs-variable, .hljs-template-variable, .hljs-link, .hljs-selector-attr, .hljs-selector-pseudo { color: #BC6060; } /* Language color: hue: 90; */ .hljs-literal { color: #78A960; } .hljs-built_in, .hljs-bullet, .hljs-code, .hljs-addition { color: #397300; } /* Meta color: hue: 200 */ .hljs-meta { color: #1f7199; } .hljs-meta-string { color: #4d99bf; } /* Misc effects */ .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: bold; }
Markdown
CSS
新規作成
Markdown記法ヘルプ(F1)
最新版にアップデート(機能実験中)
かんたんMarkdown
v1.20201014.01
_full
自動プレビュー
タブキーでスペースを挿入
`/`を入力したときに閉じタグを自動挿入
画像を添付したらタグを挿入
添付ファイル(末尾に挿入)
Markdown(末尾に挿入)
CSS(上書き)
OK
キャンセル
モード
四角
文字
消しゴム
切り抜き
枠の太さ
-
+
枠の色
透明
塗りつぶしの色
透明
フォント
拡大率
-
+
編集
←戻す(z)
(y)進む→
編集前に戻す(r)
ファイル
保存して終了(s)
保存せずに終了(q)