# pure SEE (Super Easy Edit) of docuK (Markdown): 사용 설명서 (Manual | Documentation | Tutorial).
The docuK rendered from the current text is being represented.
## Full SEE (Super Easy Edit) docuK codes
To avoid end of code printing, I escaped ```/
to ```\/
in the below printed.
Copy the below Full SEE Code
```[.scrollable.lang-html]
<!DOCTYPE html>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=3, user-scalable=yes"/>
<codeprint id="docuK-style">
<div class="docuK rendered"><div class="sec" id="docuK-log"></div></div>
<!-- From recoeve.net CDN -->
<script src="https://recoeve.net/CDN/jquery.js"></script>
<link rel="stylesheet" href="https://recoeve.net/CDN/docuK-2.3.css">
<script src="https://recoeve.net/CDN/docuK-prepare-2.3.js" charset="utf-8"></script>
</codeprint><!-- docuK-style -->
<meta charset="utf-8" name="description" content="pure SEE."/>
<codeprint class="SEE">
# pure SEE (Super Easy Edit) of docuK (Markdown): 사용 설명서 (Manual | Documentation | Tutorial).
The docuK rendered from the current text is being represented.
<script>
// Hack to avoid duplicate id handling of docuK process.
</script>
## Full SEE (Super Easy Edit) docuK codes
To avoid end of code printing, I escaped <code>```/</code> to <code>```\/</code> in the below document by hand printed.
<div class="p">
<div class="button" id="Copy-Full-SEE-Code">Copy the below Full SEE Code</div>
</div>
```[.scrollable.lang-html]
<div id="pre-code-full-SEE-docuK">
// Copied from this document by hand. (Escaped &, <, >, ```/
to &, <, >, ```\/
)
</div>
```\/
<script>
(function (m, $, undefined) {
m.toBeCopied=m.unescapeHTML($("#pre-code-full-SEE-docuK").html().trim());
$("#Copy-Full-SEE-Code").on("click", function () {
let written=m.toBeCopied;
navigator.clipboard.writeText(written).then(function () {
alert(`The following is copied!\n"${written}"`);
}
, function (err) {
alert(`Could not copy text: ${err}`);
});
});
})(window.k, jQuery);
</script>
## Abstract | Description of docuK and SEE
Specific features are
<ul>
<li>Changable mode, font-family.</li>
<li>Resizable font-size, line-height.</li>
<li>Table of contents.</li>
<li>Numbering of sections/figures/equations.</li>
<li>Citing references in bubble-shape pop up.</li>
<li>Refering figures and equations.</li>
<li>Refering anything with id and element with class="number".</li>
<li>Delayed(lazy)-loading of figures (images, iframes).</li>
<li>Delayed(lazy)-rendering of maths (MathJax). From 2023-06-01, MathJax is updated to render all equations in docuK or SEE (Super Easy Edit) in the beginning.</li>
<li>Auto code printing from `<code class="prettyprint"><codeprint id="code-id"></codeprint></code>` to `<code class="prettyprint"><pre id="pre-code-id"></pre></code>`.</li>
</ul>
Quite similar to LaTeX or Wiki document, but extended a little bit.
## PH
###/ Posting History
Posting History is put here. This section is automatically hiden.
<ul>
<li>2023-05-18 : Update.</li>
<li>2014-06-18 : First posting.</li>
</ul>
##/ Posting History
## COTD
###/ Categories of this document
Categories of this document is put here with links to <a target="_blank" href="https://kipid.tistory.com/entry/Lists">Lists of kipid's blog</a>. This section is automatically hiden.
<ul>
<li><a target="_blank" href="https://kipid.tistory.com/entry/Lists#subsec-MarkDown-docuK">[IT/Programming] Category -- MarkDown: docuK SEE (Super Easy Edit)</a></li>
<li><a target="_blank" href="https://kipid.tistory.com/entry/Lists#sec-interest">Recent interests</a></li>
</ul>
##/ Categories of this document
## Warning
In this live demo, there is some limitations. Delayed loading, browser-info, code prettyprint, maths, and possibly some additional javascript codes which are called only once in the beginning (<code>docuK-prepare.js</code>), or which are using <code>k.variables</code> already asigned before, will not work in the afterward rendering.
Only <code>k.docuKProcess()</code> will be called in this demo example. But when you put "docuK HTML part" into a html file or post it to blogs (which allows script), the full feature of docuK will be loaded and every functionality of docuK will work.
## TOC
##/ Table of Contents.
Table will be automatically filled up. Details will be explained in the following sections.
## Statement
Each statement or paragraph is splitted by double (or more than double) enters, e.g. /\n\n+/.
If '#' and '<' comes first in a statement, the paragraph will be specially treated.
## DocuK and sections
'#' indicates docuK, and '##' | '###' | '####' to sec | subsec | subsubsec.
End of docuK: '#/', and end of section | subsec | subsubsec: '##/' | '###/' | '####/' are <span class="emph">optional</span>. Renderer detects end of something automatically according the hierarchy.
End of something can be used as comments.
Text after '#/' is ignored. Therefore use '#####/' for super concrete comment.
Or just <span class="emph">end of something which are not yet opened</span> is OK.
The following is ignored, as you see it in the rendered docuK.
###/ End of something can be used as comments.
Text after '#/' is ignored. Therefore use '#####/' for super concrete comment.
Or just <span class="emph">end of something which are not yet opened</span> is OK.
##[.class0#sec-Test] Section with class and id
Section can have class and id attributes. Using the id, you can refer it like <code class="prettyprint"><refer class="sec-Test"></refer></code> <refer class="sec-Test"></refer>.
<div class="p">Class and Id are asigned with [emmet style] like <code>##[.class0.class1.hiden#sec-Test] Section head</code>.</div>
```[.lang-html]
##[.class0#sec-Test] Section with class and id
```\/
## Predifined section: "PH", "RRA", "TOC"
There are three predefined sections. "PH": Posting History, "TOC": Table of Contents, "RRA": References and Related Articles. Possibly I will add more predefined sections which can be used frequently.
See the predefined sections implemented below, and you can easily figure it out how to use it.
##[.no-sec-N#sec-No-sec-numbering] No section numbering (class="no-sec-N")
To avoid section numbering, do it like this.
```[.lang-html]
##[.no-sec-N#sec-No-sec-numbering] No section numbering (class="no-sec-N")
```\/
###[#subsec-No-sec-numbering-1] SubSection of [.no-sec-N#sec-No-sec-numbering]
```[.lang-html]
###[#subsec-No-sec-numbering-1] SubSection of [.no-sec-N#sec-No-sec-numbering]
```\/
####[#subsubsec-No-sec-numbering] SubSubSection of [.no-sec-N#sec-No-sec-numbering]
```[.lang-html]
####[#subsubsec-No-sec-numbering] SubSubSection of [.no-sec-N#sec-No-sec-numbering]
```\/
###[#subsec-No-sec-numbering-2] SubSection 2 of [.no-sec-N#sec-No-sec-numbering]
```[.lang-html]
###[#subsec-No-sec-numbering-2] SubSection 2 of [.no-sec-N#sec-No-sec-numbering]
```\/
## Citing RRA and Refering HTML elements with id.
```[.linenums.lang-html]
<div class="p">
Ref. <cite class="ref-docuK"></cite>, Ref. <cite class="ref-docuKShort"></cite>.
</div>
<div class="p">
Eq. <refer class="eqq-1"></refer>, Eq. <refer class="eqq-2"></refer>.
</div>
<div class="p">
Fig. <refer class="fig-1"></refer>
</div>
<div class="p">
Code: <refer class="code-1"></refer>
</div>
<div class="p">
Sec. <refer class="sec-Test"></refer>, Sec. <refer class="sec-No-sec-numbering"></refer>, SubSec. <refer class="subsec-No-sec-numbering"></refer>, SubSubSec. <refer class="subsubsec-No-sec-numbering"></refer>
</div>
```\/
<div class="p">
Ref. <cite class="ref-docuK"></cite>, Ref. <cite class="ref-docuKShort"></cite>.
</div>
<div class="p">
Eq. <refer class="eqq-1"></refer>, Eq. <refer class="eqq-2"></refer>.
</div>
<div class="p">
Fig. <refer class="fig-1"></refer>
</div>
<div class="p">
Code: <refer class="code-1"></refer>
</div>
<div class="p">
Sec. <refer class="sec-Test"></refer>, Sec. <refer class="sec-No-sec-numbering"></refer>, SubSec. <refer class="subsec-No-sec-numbering"></refer>, SubSubSec. <refer class="subsubsec-No-sec-numbering"></refer>
</div>
There are the blow HTML elments in this <code>docuK.SEE</code>.
```[.linenums.lang-html]
<!-- ## RRA with ol.refs -->
<ol class="refs">
<div class="subsec"><h3>Main</h3></div>
<li id="ref-docuK"><a href="https://kipid.tistory.com/entry/HTML-docuK-format-ver-20">kipid's blog - HTML docuK format ver. 2.1</a>;<br>
// Updated regularly</li>
</ol>
<!-- ## eqq tag (LaTeX equations) -->
<span class="emph"><eqq id="eqq-1">
\alpha \beta = \int f(\gamma) dx \sum_i \hat{H}_i
</eqq></span>
<eqq id="eqq-2">
\begin{split}
\vec{x} &= x^{\bar{i}} \vec{e}_{\bar{i}} = x \vec{e}_x + y \vec{e}_y + z \vec{e}_z \\
&= x^{i} \vec{e}_{i} = r \vec{e}_r + \theta \vec{e}_{\theta} + \phi \vec{e}_{\phi} \\
&= x^{i'} \vec{e}_{i'} = u \vec{e}_u + v \vec{e}_v + w \vec{e}_w \\
\end{split}
</eqq>
<!-- ## figure tag (img or iframe such as youtube video) -->
<figure id="fig-1"><div class="fig">
<img delayed-src="https://blog.kakaocdn.net/dn/bfXXOe/btr2D5LJWv8/8QVkGacKxfeA04512qPFk1/img.png" alt="img with delayed-src">
<div class="caption">Caption.</div>
</div></figure>
<!-- ## div tag with span.number HTML element. (span.number is cited as a text.) -->
<div id="code-1"><span class="number">Java vertx server code example</span>
```[.scrollable.lang-java]
import org.vertx.java.platform.Verticle; // Every Java verticle must extend the class org.vertx.java.platform.Verticle. You must override the start method - this is called by Vert.x when the verticle is started.
import org.vertx.java.core.http.HttpServerRequest;
public class HelloWorldServer extends Verticle {
///////////////////////////////////////////////
// Called when the verticle is deployed.
///////////////////////////////////////////////
@Override
public void start() {
/////////////////////////////////////////////
// Lambda exp with chaining.
/////////////////////////////////////////////
vertx.createHttpServer().requestHandler( (HttpServerRequest req) -> {
System.out.println("req.method(): "+req.method()); // GET, PUT, POST, DELETE, HEAD, OPTIONS, CONNECT, TRACE, PATCH
req.response().putHeader("Content-Type","text/html");
req.response().end("<h1>Hello World</h1>");
req.response().close();
}).listen(1001);
}
///////////////////////////////////////////////
// Called when the verticle is undeployed.
///////////////////////////////////////////////
@Override
public void stop(){
// do something.
}
}
```\/ // Hack to avoid closing "```" code.
</div>
```\/
## PH
###/ Posting History
Posting History is put here. This section is automatically hiden.
<ul>
<li>2023-09-25 : Update.</li>
<li>Posting History is put here.</li>
<li>2014-06-18 : First posting.</li>
</ul>
##/ Posting History
## TOC
TOC is a self-closing section, i.e. no other texts can be put inside.
Next text will be out of TOC.
##/ Table of Contents.
Table will be automatically filled up.
## RRA
###/ References and Related Articles
<ol class="refs">
<div class="subsec"><h3>Main</h3></div>
<li id="ref-docuK"><a href="https://kipid.tistory.com/entry/HTML-docuK-format-ver-20">kipid's blog - HTML docuK format ver. 2.1</a>;<br>
// Updated regularly</li>
<li id="ref-docuKGithub"><a href="https://github.com/kipid/docuK">github.com - kipid - docuK</a></li>
<div class="subsec"><h3>Supported by</h3></div>
<li id="ref-jQuery"><a href="http://jquery.com/">jQuery.com</a>; and <a href="http://jquery.com/download/">jQuery - download</a>;<br>
// JavaScript enhancer</li>
<li id="ref-mathjax"><a href="http://www.mathjax.org/">MathJax.org</a>; and <a href="http://docs.mathjax.org/en/latest/index.html">MathJax Documentation - latest</a>; and <a href="http://docs.mathjax.org/en/latest/options/hub.html">The Core Configuration Options</a>; and <a href="http://docs.mathjax.org/en/latest/api/hub.html">The MathJax.Hub Object</a>;<br>
// Math renderer.</li>
<li id="ref-googleCodePrettyfy"><a href="https://code.google.com/p/google-code-prettify/">Google Code Prettify</a> and <a href="https://code.google.com/p/google-code-prettify/wiki/GettingStarted">Getting Started</a>;<br>
// Code prettyfier.</li>
<div class="subsec"><h3>API documentation</h3></div>
<li id="ref-jQuery-contents"><a href="http://api.jquery.com/contents/">jQuery - contents()</a>: Get array of immediate children of element, including text nodes.</li>
<li id="ref-MDN-css-reference"><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Reference">MDN - CSS full reference</a>; and especially <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes">Pseudo-classes</a> is useful. Ex: <code class="prettyprint">element:nth-of-type(an + b) { style properties }</code> <code class="prettyprint">element:nth-child(an + b) { style properties }</code></li>
<div class="subsec"><h3>Other markdown/markup languages</h3></div>
<li id="ref-latex"><a href="https://kipid.tistory.com/entry/introducing-LaTeX-and-Guides">LaTeX(라텍스, 레이텍) 소개 및 설명서(Guide)들</a>, 2014-03-24<br>
// 다른 이런류의 편집기가 많긴 하지만, 그 기원(?)이라고 할 수 있는게 TeX/LaTeX 일듯. 그런데 이건 책이나 논문을 만드는데 목적을 두고 만들어진 것이라서 pdf 같은걸로 결과물을 주기 때문에 인터넷, IT 기기에서 사용하기에는 부적합해 보이기도.<br>
// 그래도 문법은 차용해서 쓰기 좋음.</li>
<li><a href="http://www.wikipedia.org/">wikipedia.org</a>;<br>
// Wikipedia uses its own markdown language.</li>
<li><a href="https://stackoverflow.com/">stackoverflow.com</a>;<br>
// Stack Overflow uses its own markdown language.</li>
<li><a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet">GitHub/adam-p - Markdown (GitHub)</a>; and <a href="http://markdown-here.com/livedemo.html">live demo page</a><br>
// This might be used in GitHub wiki.</li>
</ol>
##/ References and Related Articles
## head (h2) of section
section contents
### head (h3) of subsection
contents of subsection
#### head (h4) of subsubsection
contents of subsubsection
####/ optional end of subsubsection
###/ optional end of subsection
##/ optional end of section
##[.hiden#sec-HidenSec] Initially Hiden Section
With hiden class, the section will be hiden initially.
## Raw HTML
Since learning and remembering something new takes time, this is designed to be just as simple as possible. And as what this actually do is simply renderring/making a text to the HTML format, new grammers will be minimized by adopting raw HTML grammers.
<div class="p">
Raw HTML can be added like this. A paragraph starting with '<' will be appended without any change.
</div>
Raw text is appended as a paragraph, enclosed by <code class="prettyprint"><div class="p"></div></code>.
<div class="cmt">
This is default comment box: <code class="prettyprint"><div class="cmt"></div></code>.
You can put multiple paragraphs and nested htmls.
<ul>
<li>Unordered list 1.</li>
<li>Unordered list 2.</li>
</ul>
<ol>
<li>Ordered list 1.</li>
<li>Ordered list 2.</li>
</ol>
This is it.
</div>
<div class="bcf">
This is default 'be careful' box: <code class="prettyprint"><div class="bcf"></div></code>.
</div>
## Links | URLs to appropriate html
Planning to implement this.
http://www.npr.org/blogs/health/2013/12/30/258376009/how-language-seems-to-shape-ones-view-of-the-world
How Language Seems To Shape One's View Of The World
, January 02, 2014, by ALAN YU.
## Figures
<figure id="fig-1"><div class="fig">
<img delayed-src="https://blog.kakaocdn.net/dn/bfXXOe/btr2D5LJWv8/8QVkGacKxfeA04512qPFk1/img.png" alt="img with delayed-src">
<div class="caption">Caption.</div>
</div></figure>
## Maths or Equations
Maths or Equations can be put by using \$TeX math\$, <code class="prettyprint"><eq>TeX math</eq></code>, and <code class="prettyprint"><eqq>TeX math</eqq></code>.
The first two are converted to <span class="emph">inline maths like $\alpha \beta = \int f(\gamma) dx \sum_i \hat{H}_i$. The last one</span> is converted to outline math like
<span class="emph"><eqq id="eqq-1">
\alpha \beta = \int f(\gamma) dx \sum_i \hat{H}_i
</eqq></span>
<eqq id="eqq-2">
\begin{split}
\vec{x} &= x^{\bar{i}} \vec{e}_{\bar{i}} = x \vec{e}_x + y \vec{e}_y + z \vec{e}_z \\
&= x^{i} \vec{e}_{i} = r \vec{e}_r + \theta \vec{e}_{\theta} + \phi \vec{e}_{\phi} \\
&= x^{i'} \vec{e}_{i'} = u \vec{e}_u + v \vec{e}_v + w \vec{e}_w \\
\end{split}
</eqq>
## Codes
Codes can be pretty-printed.
Using <code class="prettyprint"><pre class="prettyprint scrollable lang-java">Codes to be pretty-printed.</pre></code>,
<pre class="prettyprint scrollable lang-java">
import org.vertx.java.platform.Verticle; // Every Java verticle must extend the class org.vertx.java.platform.Verticle. You must override the start method - this is called by Vert.x when the verticle is started.
import org.vertx.java.core.http.HttpServerRequest;
public class HelloWorldServer extends Verticle {
///////////////////////////////////////////////
// Called when the verticle is deployed.
///////////////////////////////////////////////
@Override
public void start() {
/////////////////////////////////////////////
// Lambda exp with chaining.
/////////////////////////////////////////////
vertx.createHttpServer().requestHandler( (HttpServerRequest req) -> {
System.out.println("req.method(): "+req.method()); // GET, PUT, POST, DELETE, HEAD, OPTIONS, CONNECT, TRACE, PATCH
req.response().putHeader("Content-Type","text/html");
req.response().end("<h1>Hello World</h1>");
req.response().close();
}).listen(1001);
}
///////////////////////////////////////////////
// Called when the verticle is undeployed.
///////////////////////////////////////////////
@Override
public void stop(){
// do something.
}
}
</pre>
<div class="p"></div>
Using <code>```Codes to be pretty-printed.```\/</code>, or <code>```[Emmet style class and id attr like ".class-0.class-1#element-id"]Codes to be pretty-printed.```\/</code>,
<div id="code-1"><span class="number">Java vertx server code example</span>
```[.scrollable.lang-java]
import org.vertx.java.platform.Verticle; // Every Java verticle must extend the class org.vertx.java.platform.Verticle. You must override the start method - this is called by Vert.x when the verticle is started.
import org.vertx.java.core.http.HttpServerRequest;
public class HelloWorldServer extends Verticle {
///////////////////////////////////////////////
// Called when the verticle is deployed.
///////////////////////////////////////////////
@Override
public void start() {
/////////////////////////////////////////////
// Lambda exp with chaining.
/////////////////////////////////////////////
vertx.createHttpServer().requestHandler( (HttpServerRequest req) -> {
System.out.println("req.method(): "+req.method()); // GET, PUT, POST, DELETE, HEAD, OPTIONS, CONNECT, TRACE, PATCH
req.response().putHeader("Content-Type","text/html");
req.response().end("<h1>Hello World</h1>");
req.response().close();
}).listen(1001);
}
///////////////////////////////////////////////
// Called when the verticle is undeployed.
///////////////////////////////////////////////
@Override
public void stop(){
// do something.
}
}
```\/
</div>
## New Section
"```\/" 로 끝나면 에러남 ㅡ,.ㅡ;;; 귀찮네 해결하기.
</codeprint><!-- SEE -->
<codeprint id="docuK-script">
<script>
(function(m, $, undefined) {
m.recoCats="";
m.wait=1024;
m.delayPad=512;
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
**/
window.disqus_config=function () {
this.page.identifier="pure-SEE"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
this.page.url=`https://kipid.tistory.com/entry/${this.page.identifier}`; // Replace PAGE_URL with your page's canonical URL variable
};
})(window.m, jQuery)
</script>
<!-- From recoeve.net CDN -->
<script src="https://recoeve.net/CDN/docuK-postProcess-2.3.js" charset="utf-8"></script>
</codeprint><!-- docuK-script -->
```/
## Abstract | Description of docuK and SEE
Specific features are
- Changable mode, font-family.
- Resizable font-size, line-height.
- Table of contents.
- Numbering of sections/figures/equations.
- Citing references in bubble-shape pop up.
- Refering figures and equations.
- Refering anything with id and element with class="number".
- Delayed(lazy)-loading of figures (images, iframes).
- Delayed(lazy)-rendering of maths (MathJax). From 2023-06-01, MathJax is updated to render all equations in docuK or SEE (Super Easy Edit) in the beginning.
- Auto code printing from `
<codeprint id="code-id"></codeprint>
` to `<pre id="pre-code-id"></pre>
`. (For non-duplicate id handling, put empty <script></script>
in the beginning right after h1 '#'.)
Quite similar to LaTeX or Wiki document, but extended a little bit.
## PH
###/ Posting History
Posting History is put here. This section is automatically hiden.
- 2023-09-24 : Full SEE (Super Easy Edit) docuK codes.
- 2023-05-18 : Update.
- 2014-06-18 : First posting.
##/ Posting History
## COTD
###/ Categories of this document
Categories of this document is put here with links to Lists of kipid's blog. This section is automatically hiden.
##/ Categories of this document
## Warning
In this live demo, there is some limitations. Delayed loading, browser-info, code prettyprint, maths, and possibly some additional javascript codes which are called only once in the beginning (docuK-prepare.js
), or which are using k.variables
already asigned before, will not work in the afterward rendering.
Only k.docuKProcess()
will be called in this demo example. But when you put "docuK HTML part" into a html file or post it to blogs (which allows script), the full feature of docuK will be loaded and every functionality of docuK will work.
## TOC
##/ Table of Contents.
Table will be automatically filled up. Details will be explained in the following sections.
## Statement
Each statement or paragraph is splitted by double (or more than double) enters, e.g. /\n\n+/.
If '#' and '<' comes first in a statement, the paragraph will be specially treated.
## DocuK and sections
'#' indicates docuK, and '##' | '###' | '####' to sec | subsec | subsubsec.
End of docuK: '#/', and end of section | subsec | subsubsec: '##/' | '###/' | '####/' are optional. Renderer detects end of something automatically according the hierarchy.
End of something can be used as comments.
Text after '#/' is ignored. Therefore use '#####/' for super concrete comment.
Or just end of something which are not yet opened is OK.
The following is ignored, as you see it in the rendered docuK.
###/ End of something can be used as comments.
Text after '#/' is ignored. Therefore use '#####/' for super concrete comment.
Or just end of something which are not yet opened is OK.
##[.class0#sec-Test] Section with class and id
Section can have class and id attributes. Using the id, you can refer it like <refer class="sec-Test"></refer>
.
Class and Id are asigned with [emmet style] like ##[.class0.class1.hiden#sec-Test] Section head
.
```[.lang-html]
##[.class0#sec-Test] Section with class and id
```/
## Predifined section: "PH", "RRA", "TOC", "COTD"
There are three predefined sections. "PH": Posting History, "TOC": Table of Contents, "RRA": References and Related Articles, "COTD": Categories of this document. Possibly I will add more predefined sections which can be used frequently.
See the predefined sections implemented below, and you can easily figure it out how to use it.
##[.no-sec-N#sec-No-sec-numbering] No section numbering (class="no-sec-N")
To avoid section numbering, do it like this.
```[.lang-html]
##[.no-sec-N#sec-No-sec-numbering] No section numbering (class="no-sec-N")
```/
###[#subsec-No-sec-numbering-1] SubSection of [.no-sec-N#sec-No-sec-numbering]
```[.lang-html]
###[#subsec-No-sec-numbering-1] SubSection of [.no-sec-N#sec-No-sec-numbering]
```/
####[#subsubsec-No-sec-numbering] SubSubSection of [.no-sec-N#sec-No-sec-numbering]
```[.lang-html]
####[#subsubsec-No-sec-numbering] SubSubSection of [.no-sec-N#sec-No-sec-numbering]
```/
###[#subsec-No-sec-numbering-2] SubSection 2 of [.no-sec-N#sec-No-sec-numbering-2]
```[.lang-html]
###[#subsec-No-sec-numbering-2] SubSection 2 of [.no-sec-N#sec-No-sec-numbering-2]
```/
## Citing RRA and Refering HTML elements with id.
```[.linenums.lang-html]
<div class="p">
Ref. <cite class="ref-docuK"></cite>, Ref. <cite class="ref-docuKShort"></cite>.
</div>
<div class="p">
Eq. <refer class="eqq-1"></refer>, Eq. <refer class="eqq-2"></refer>.
</div>
<div class="p">
Fig. <refer class="fig-1"></refer>
</div>
<div class="p">
Code: <refer class="code-1"></refer>
</div>
<div class="p">
Sec. <refer class="sec-Test"></refer>, Sec. <refer class="sec-No-sec-numbering"></refer>, SubSec. <refer class="subsec-No-sec-numbering"></refer>, SubSubSec. <refer class="subsubsec-No-sec-numbering"></refer>
</div>
```/
Ref. , Ref. .
Eq. , Eq. .
Fig.
Code:
Sec. , Sec. , SubSec. , SubSubSec. , SubSec.
There are the blow HTML elments in this docuK.SEE
.
```[.linenums.lang-html]
<!-- ## RRA with ol.refs -->
<ol class="refs">
<div class="subsec"><h3>Main</h3></div>
<li id="ref-docuK"><a href="https://kipid.tistory.com/entry/HTML-docuK-format-ver-20">kipid's blog - HTML docuK format ver. 2.1</a>;<br>
// Updated regularly</li>
</ol>
<!-- ## eqq tag (LaTeX equations) -->
<span class="emph"><eqq id="eqq-1">
\alpha \beta = \int f(\gamma) dx \sum_i \hat{H}_i
</eqq></span>
<eqq id="eqq-2">
\begin{split}
\vec{x} &= x^{\bar{i}} \vec{e}_{\bar{i}} = x \vec{e}_x + y \vec{e}_y + z \vec{e}_z \\
&= x^{i} \vec{e}_{i} = r \vec{e}_r + \theta \vec{e}_{\theta} + \phi \vec{e}_{\phi} \\
&= x^{i'} \vec{e}_{i'} = u \vec{e}_u + v \vec{e}_v + w \vec{e}_w \\
\end{split}
</eqq>
<!-- ## figure tag (img or iframe such as youtube video) -->
<figure id="fig-1"><div class="fig">
<img delayed-src="https://blog.kakaocdn.net/dn/bfXXOe/btr2D5LJWv8/8QVkGacKxfeA04512qPFk1/img.png" alt="img with delayed-src">
<div class="caption">Caption.</div>
</div></figure>
<!-- ## div tag with span.number HTML element. (span.number is cited as a text.) -->
<div id="code-1"><span class="number">Java vertx server code example</span>
```[.scrollable.lang-java]
import org.vertx.java.platform.Verticle; // Every Java verticle must extend the class org.vertx.java.platform.Verticle. You must override the start method - this is called by Vert.x when the verticle is started.
import org.vertx.java.core.http.HttpServerRequest;
public class HelloWorldServer extends Verticle {
///////////////////////////////////////////////
// Called when the verticle is deployed.
///////////////////////////////////////////////
@Override
public void start() {
/////////////////////////////////////////////
// Lambda exp with chaining.
/////////////////////////////////////////////
vertx.createHttpServer().requestHandler( (HttpServerRequest req) -> {
System.out.println("req.method(): "+req.method()); // GET, PUT, POST, DELETE, HEAD, OPTIONS, CONNECT, TRACE, PATCH
req.response().putHeader("Content-Type","text/html");
req.response().end("<h1>Hello World</h1>");
req.response().close();
}).listen(1001);
}
///////////////////////////////////////////////
// Called when the verticle is undeployed.
///////////////////////////////////////////////
@Override
public void stop(){
// do something.
}
}
```\/ // Hack to avoid closing "```" code.
</div>
```/
## PH
###/ Posting History
Posting History is put here. This section is automatically hiden.
- 2023-09-24 : Update.
- Posting History is put here.
- 2014-06-18 : First posting.
##/ Posting History
## TOC
TOC is a self-closing section, i.e. no other texts can be put inside.
Next text will be out of TOC.
##/ Table of Contents.
Table will be automatically filled up.
## RRA
###/ References and Related Articles
Main
- kipid's blog - HTML docuK format ver. 2.3;
// Updated regularly
- github.com - kipid - docuK
Supported by
- jQuery.com; and jQuery - download;
// JavaScript enhancer
- MathJax.org; and MathJax Documentation - latest; and The Core Configuration Options; and The MathJax.Hub Object;
// Math renderer.
- Google Code Prettify and Getting Started;
// Code prettyfier.
API documentation
- jQuery - contents(): Get array of immediate children of element, including text nodes.
- MDN - CSS full reference; and especially Pseudo-classes is useful. Ex:
element:nth-of-type(an + b) { style properties }
element:nth-child(an + b) { style properties }
Other markdown/markup languages
- LaTeX(라텍스, 레이텍) 소개 및 설명서(Guide)들, 2014-03-24
// 다른 이런류의 편집기가 많긴 하지만, 그 기원(?)이라고 할 수 있는게 TeX/LaTeX 일듯. 그런데 이건 책이나 논문을 만드는데 목적을 두고 만들어진 것이라서 pdf 같은걸로 결과물을 주기 때문에 인터넷, IT 기기에서 사용하기에는 부적합해 보이기도.
// 그래도 문법은 차용해서 쓰기 좋음.
- wikipedia.org;
// Wikipedia uses its own markdown language.
- stackoverflow.com;
// Stack Overflow uses its own markdown language.
- GitHub/adam-p - Markdown (GitHub); and live demo page
// This might be used in GitHub wiki.
##/ References and Related Articles
## head (h2) of section
section contents
### head (h3) of subsection
contents of subsection
#### head (h4) of subsubsection
contents of subsubsection
####/ optional end of subsubsection
###/ optional end of subsection
##/ optional end of section
##[.hiden#sec-HidenSec] Initially Hiden Section
With hiden class, the section will be hiden initially.
## Raw HTML
Since learning and remembering something new takes time, this is designed to be just as simple as possible. And as what this actually do is simply renderring/making a text to the HTML format, new grammers will be minimized by adopting raw HTML grammers.
Raw HTML can be added like this. A paragraph starting with '<' will be appended without any change.
Raw text is appended as a paragraph, enclosed by <div class="p"></div>
.
This is default comment box:
<div class="cmt"></div>
.
You can put multiple paragraphs and nested htmls.
- Unordered list 1.
- Unordered list 2.
- Ordered list 1.
- Ordered list 2.
This is it.
This is default 'be careful' box: <div class="bcf"></div>
.
## Links | URLs to appropriate html
Planning to implement this.
http://www.npr.org/blogs/health/2013/12/30/258376009/how-language-seems-to-shape-ones-view-of-the-world
How Language Seems To Shape One's View Of The World
, January 02, 2014, by ALAN YU.
## Figures
## Maths or Equations
Maths or Equations can be put by using \$TeX math\$, <eq>TeX math</eq>
, and <eqq>TeX math</eqq>
.
The first two are converted to inline maths like $\alpha \beta = \int f(\gamma) dx \sum_i \hat{H}_i$. The last one is converted to outline math like
\alpha \beta = \int f(\gamma) dx \sum_i \hat{H}_i
\begin{split}
\vec{x} &= x^{\bar{i}} \vec{e}_{\bar{i}} = x \vec{e}_x + y \vec{e}_y + z \vec{e}_z \\
&= x^{i} \vec{e}_{i} = r \vec{e}_r + \theta \vec{e}_{\theta} + \phi \vec{e}_{\phi} \\
&= x^{i'} \vec{e}_{i'} = u \vec{e}_u + v \vec{e}_v + w \vec{e}_w \\
\end{split}
## Codes
Codes can be pretty-printed.
Using <pre class="prettyprint scrollable lang-java">Codes to be pretty-printed.</pre>
,
import org.vertx.java.platform.Verticle; // Every Java verticle must extend the class org.vertx.java.platform.Verticle. You must override the start method - this is called by Vert.x when the verticle is started.
import org.vertx.java.core.http.HttpServerRequest;
public class HelloWorldServer extends Verticle {
///////////////////////////////////////////////
// Called when the verticle is deployed.
///////////////////////////////////////////////
@Override
public void start() {
/////////////////////////////////////////////
// Lambda exp with chaining.
/////////////////////////////////////////////
vertx.createHttpServer().requestHandler( (HttpServerRequest req) -> {
System.out.println("req.method(): "+req.method()); // GET, PUT, POST, DELETE, HEAD, OPTIONS, CONNECT, TRACE, PATCH
req.response().putHeader("Content-Type","text/html");
req.response().end("<h1>Hello World</h1>");
req.response().close();
}).listen(1001);
}
///////////////////////////////////////////////
// Called when the verticle is undeployed.
///////////////////////////////////////////////
@Override
public void stop(){
// do something.
}
}
Using ```Codes to be pretty-printed.```/
, or ```[Emmet style class and id attr like ".class-0.class-1#element-id"]Codes to be pretty-printed.```/
,
Java vertx server code example
```[.scrollable.lang-java]
import org.vertx.java.platform.Verticle; // Every Java verticle must extend the class org.vertx.java.platform.Verticle. You must override the start method - this is called by Vert.x when the verticle is started.
import org.vertx.java.core.http.HttpServerRequest;
public class HelloWorldServer extends Verticle {
///////////////////////////////////////////////
// Called when the verticle is deployed.
///////////////////////////////////////////////
@Override
public void start() {
/////////////////////////////////////////////
// Lambda exp with chaining.
/////////////////////////////////////////////
vertx.createHttpServer().requestHandler( (HttpServerRequest req) -> {
System.out.println("req.method(): "+req.method()); // GET, PUT, POST, DELETE, HEAD, OPTIONS, CONNECT, TRACE, PATCH
req.response().putHeader("Content-Type","text/html");
req.response().end("<h1>Hello World</h1>");
req.response().close();
}).listen(1001);
}
///////////////////////////////////////////////
// Called when the verticle is undeployed.
///////////////////////////////////////////////
@Override
public void stop(){
// do something.
}
}
```/
## Fuzzy Search of Contents of the SEE document
You can easily fuzzy-search contents of the SEE document with FS (Go: shortkey G).
## Header, Footer (Promoting recoeve.net)
In header and footer, there are promotions of recoeve.net.
You can set the recoeve page of yours with k.recoeveUserId="your-recoeve-id";
, and k.recoCats="Current pages categories, ; separated multiple categories"
.
You can disable these promotions with k.printMode=true
setting.
In this page, I set the recoeve-related variables like the below.
```
k.printMode=false;
k.recoeveUserId="kipid";
k.recoCats="[IT/Programming]--MarkDown--docuK SEE (Super Easy Edit)";
```/
So the iframe pages in the header and footer will be [IT/Programming]--MarkDown--docuK SEE (Super Easy Edit) of kipid's Recoeve.net (multireco mode).
The default value of k.recoeveUserId="kipid"
and k.recoCats="[Music/Break]--K-Pop"
, when those are not set or empty.