Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Add hr into example. 🌵
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyguitar committed Sep 2, 2016
1 parent bea69f4 commit d13dbb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions lib/slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ TerminalRenderer.prototype.heading = function(text, level, raw) {
return '\n' + this.o.heading(text) + '\n';
};


TerminalRenderer.prototype.paragraph = function(texts) {
return Promise.all(texts).then(data => {
var res = '';
Expand All @@ -164,7 +163,6 @@ TerminalRenderer.prototype.paragraph = function(texts) {
})
}


TerminalRenderer.prototype.link = function(href, title, text) {
text = text.join('');
if (this.options.sanitize) {
Expand All @@ -190,6 +188,10 @@ TerminalRenderer.prototype.link = function(href, title, text) {
return this.o.link(out);
};

TerminalRenderer.prototype.hr = function() {
return '\n\n' + '-'.repeat(this.o.width) + '\n';
};


/**
* Read slide content.
Expand Down
10 changes: 6 additions & 4 deletions slides/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ A command-line based markdown presentation tool which writen by **nodejs**.

All pull requests are welcome!

---


### Noder JS

Expand Down Expand Up @@ -39,19 +41,19 @@ Markdown
```
* item 1
* item 2
⋅⋅ Unordered sub-list.
.. Unordered sub-list
* item 3
⋅⋅ Unordered sub-list
.. Unordered sub-list
* final item
```

become

* item 1
* item 2
⋅⋅ Unordered sub-list.
.. Unordered sub-list
* item 3
⋅⋅ Unordered sub-list
.. Unordered sub-list
* final item


Expand Down

0 comments on commit d13dbb8

Please sign in to comment.