A boilerplate .html file that renders your README.md
https://vsharapov.github.io/INDEXmd/?text-width=readable
Just save this .html file to your repo's directory
Stuff you might wanna mess with:
fileToRender = 'README.md';display:nonein thestyleof theindexmdmenuwill hide itmenuOptionsdefaults can be changedreadableis hardcoded to...maxWidth = "70ch";
- The icon is just the
makeFaviconText(document.title);truncated (~2 letters)- Instead of
document.titlehardcode something🅱etter like竜or🆒 - Fit more characters by changing
font-family="mono"etc… in the svg
- Instead of
- Markdown parser options
- Before
new showdown.Converter();e.g.showdown.setOption('tables', true); - See defaults (and all options) with
console.log(showdown.getOptions());
- Before
- Da🅽k mode:
color: maroon;
This a test of all markdown possibilities:
This is bold text
This is bold text
This is italic text
This is italic text
Strikethrough (non-spec)
This is an example inline link.
This link has no title attribute.
Blockquotes can also be nested...
...by using additional greater-than signs right next to each other...
...or with spaces between arrows.
- Create a list by starting a line with
+,-, or* - Sub-lists are made by indenting 4 spaces:
- Marker character change forces new list start:
- Ac tristique libero volutpat at
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Marker character change forces new list start:
- Very easy!
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- You can use sequential numbers...
- ...or keep all the numbers as
1.
- foo
- bar
Like links, Images also have a footnote style syntax
With a reference later in the document defining the URL location:
(non-spec)
| Option | Description |
|---|---|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
Right aligned columns
| Option | Description |
|---|---|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
Inline code
Indented code
// Some comments
line 1 of code
line 2 of code
line 3 of code
Block code "fences"
Sample text here...
Syntax highlighting (non-spec)
var foo = function (bar) {
return bar++;
};
console.log(foo(5));