Browse Source

Allow punctuation near *italics*.

pull/126/head
Lal'C Mellk Mal 3 years ago
parent
commit
59ed219d32
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common.js

+ 1
- 1
common.js View File

@@ -524,7 +524,7 @@ OS.kinpira = function (text) {
/// 6th tokenization stage; parses individual *italic* *words*
OS.itameshi = function (text) {
while (true) {
var m = /(^| )\*([^ *]+)\*($| )/.exec(text);
var m = /(^|[ .,;:?!(-])\*([^ *]+)\*($|[ .,;:?!)-])/.exec(text);
if (!m)
break;
if (m.index > 0) {


Loading…
Cancel
Save