Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #49 from bobbybee/bugfix/italics-bold
Browse files Browse the repository at this point in the history
Nested bold+italics; closes #43
  • Loading branch information
bobbybee committed Jun 7, 2015
2 parents fc3db25 + 98d8646 commit 92afc53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/test.up
Expand Up @@ -19,8 +19,8 @@ Some links..
# Etymology

~ Likely comes from _Latin_
~ Might also come from _Greek_
~ Some even believe it originates from **German**
~ Might also come from _**Greek**_
~ Some even believe it originates from **_German_**

------------------
# Purpose
Expand Down
8 changes: 6 additions & 2 deletions uPresent.ne
Expand Up @@ -49,11 +49,15 @@ ln -> nophrase linecharacter:+ {%
lphrase -> ln {% id %}
| nphrase {% id %}

lophrase -> ln {% id %}
| nphrase {% id %}
| _ {% function(d) { return "" } %}

nophrase -> nphrase {% id %} | _ {% function() { return "" } %}

nphrase -> lphrase [#] {% function(d) { return d[0]+d[1] } %}
| lphrase italics {% function(d) { return d[0]+d[1] } %}
| lphrase bold {% function(d) { return d[0]+d[1] } %}
| lophrase italics {% function(d) { return d[0]+d[1] } %}
| lophrase bold {% function(d) { return d[0]+d[1] } %}
| lphrase image {% function(d) { return d[0]+d[1] } %}
| lphrase [\-] {% function(d) { return d[0]+d[1] } %}
| lphrase [!] [^\[] {% function(d) { return d[0]+d[1]+d[2] } %}
Expand Down

0 comments on commit 92afc53

Please sign in to comment.