markdown-it
demo with Eclipse CHE action syntax
html
xhtmlOut
breaks
linkify
typographer
highlight
CommonMark strict
clear
permalink
--- __CHE actions syntax inside markdown__ --- # h1 [action, id="open-file", path="/path", line=30] Heading 8-) ## h2 [action, id="open-file", path="/path", line=30] Heading ### h3 [action, id="open-file", path="/path", line=30] Heading #### h4 [action, id="open-file", path="/path", line=30] Heading ##### h5 [action, id="open-file", path="/path", line=30] Heading ###### h6 [action, id="open-file", path="/path", line=30] Heading [action, id="open-file", path="/path", line=30] ## Horizontal Rules [action, id="open-file", path="/path", line=30] ___ --- *** ## Typographic replacements Enable typographer option to see result. (c) (C) (r) (R) (tm) (TM) (p) (P) +- test.. test... test..... test?..... test!.... !!!!!! ???? ,, -- --- "Smartypants, [action, id="open-file", path="/path", line=30] double quotes" and 'single quotes' ## Emphasis **This is bold text [action, id="open-file", path="/path", line=30]** __This is bold [action, id="open-file", path="/path", line=30] text__ *This is italic text [action, id="open-file", path="/path", line=30]* _This is italic text [action, id="open-file", path="/path", line=30]_ ~~Strikethrough [action, id="open-file", path="/path", line=30]~~ ## Blockquotes > Blockquotes can also be nested [action, id="open-file", path="/path", line=30]... >> ...by using additional greater-than signs right next to each [action, id="open-file", path="/path", line=30] other... > > > ...or with spaces between arrows [action, id="open-file", path="/path", line=30]. ## Lists Unordered + Create a list by [action, id="open-file", path="/path", line=30] starting a line with `+`, `-`, or `*` + Sub-lists are made by indenting 2 spaces: - Marker character [action, id="open-file", path="/path", line=30] change forces new list start: * Ac tristique [action, id="open-file", path="/path", line=30] libero volutpat at + Facilisis in pretium nisl aliquet [action, id="open-file", path="/path", line=30] - [action, id="open-file", path="/path", line=30]Nulla volutpat aliquam velit + Very easy [action, id="open-file", path="/path", line=30]! Ordered 1. Lorem ipsum dolor sit amet [action, id="open-file", path="/path", line=30] 2. Consectetur adipiscing elit [action, id="open-file", path="/path", line=30] 3. Integer molestie lorem at massa [action, id="open-file", path="/path", line=30] 1. You can use sequential numbers [action, id="open-file", path="/path", line=30]... 1. ...or keep all the numbers as [action, id="open-file", path="/path", line=30] `1.` Start numbering with offset: 57. foo [action, id="open-file", path="/path", line=30] 1. bar [action, id="open-file", path="/path", line=30] ## Code Inline `code` Indented code // Some comments line 1 of code [action, id="open-file", path="/path", line=30] line 2 of code line 3 of code Block code "fences" ``` Sample text here... ``` Syntax highlighting ``` js var foo = function (bar) { return bar++; }; console.log(foo(5)); ``` ## Tables | Option | Description | | ------ | ----------- | | data | path to data files to supply the data that will be passed into templates. [action, id="open-file", path="/path", line=30] | | engine [action, id="open-file", path="/path", line=30] | engine to be used for processing templates. Handlebars is the default. | | ext | extension to be used for dest files. [action, id="open-file", path="/path", line=30] | Right aligned columns | Option [action, id="open-file", path="/path", line=30] | Description [action, id="open-file", path="/path", line=30] | | ------:| -----------:| | data [action, id="open-file", path="/path", line=30] | path to data files to supply the data that will be passed into templates. | | engine [action, id="open-file", path="/path", line=30] | engine to be used for processing templates. Handlebars is the default. | | ext [action, id="open-file", path="/path", line=30] | extension to be used for dest files. | ## Links [link text](http://dev.nodeca.com) [action, id="open-file", path="/path", line=30] [link with title](http://nodeca.github.io/pica/demo/ "title text!") Autoconverted link https://github.com/nodeca/pica (enable linkify to see) ## Images ![Minion](https://octodex.github.com/images/minion.png) [action, id="open-file", path="/path", line=30] ![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat") Like links, Images also have a footnote style syntax ![Alt text][id] With a reference later in the document defining the URL location: [id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat" ## Plugins The killer feature of `markdown-it` is very effective support of [syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin). ### [Emojies](https://github.com/markdown-it/markdown-it-emoji) > Classic markup: :wink: :crush: :cry: :tear: :laughing: :yum: > > Shortcuts (emoticons): :-) :-( 8-) ;)[action, id="open-file", path="/path", line=30] see [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji. ### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup) - 19^th^ [action, id="open-file", path="/path", line=30] - H~2~O ### [\<ins [action, id="open-file", path="/path", line=30] >](https://github.com/markdown-it/markdown-it-ins) ++Inserted text++ ### [\<mark [action, id="open-file", path="/path", line=30]>](https://github.com/markdown-it/markdown-it-mark) ==Marked text [action, id="open-file", path="/path", line=30]== ### [Footnotes](https://github.com/markdown-it/markdown-it-footnote) Footnote 1 link[^first] [action, id="open-file", path="/path", line=30]. Footnote 2 link[^second] [action, id="open-file", path="/path", line=30]. Inline footnote^[Text of inline footnote] definition. Duplicated footnote reference[^second]. [^first]: Footnote **can have markup** and multiple paragraphs. [^second]: Footnote text. [action, id="open-file", path="/path", line=30] ### [Definition lists](https://github.com/markdown-it/markdown-it-deflist) Term 1 [action, id="open-file", path="/path", line=30] : Definition 1 with lazy continuation. [action, id="open-file", path="/path", line=30] Term 2 with *inline markup* : Definition 2 [action, id="open-file", path="/path", line=30] { some code, part of Definition 2 } [action, id="open-file", path="/path", line=30] Third paragraph of definition 2. _Compact style:_ Term 1 ~ Definition 1 [action, id="open-file", path="/path", line=30] Term 2 [action, id="open-file", path="/path", line=30] ~ Definition 2a [action, id="open-file", path="/path", line=30] ~ Definition 2b [action, id="open-file", path="/path", line=30] ### [Abbreviations](https://github.com/markdown-it/markdown-it-abbr) This is HTML abbreviation example. It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on. *[HTML]: Hyper Text Markup Language ### [Custom containers](https://github.com/markdown-it/markdown-it-container) ::: warning *here be dragons* [action, id="open-file", path="/path", line=30] ::: [action, id]
html
source
debug