BISyntax


Let's see what happens with bold and italic syntax DocuWiki?-style, when processed as an inline markup:

**bold words**
//italic words//

bold words italic words

I will probably have to mod the built-in bullet list syntax to require one or more spaces between the *s and the list item text.

Testing

Original markup

* This is ''old italic'' in a sentence.
* This is '''old bold''' in a sentence.
* This is '''''old bold italic''''' in a sentence.
  • This is old italic in a sentence.
  • This is old bold in a sentence.
  • This is old bold italic in a sentence.

Italic

* Here is a //basic test//
* Filepaths: http://pmichaud.com/pipermail/pmwiki-users_pmichaud.com/2003-August/001282.html
* Two filepaths: http://www.google.com and http://www.example.com
* Quoted and parenthesized:  
** Inside: He said "//hello//", (and said it //loudly//).
** Outside: He said //"hello",// (and //(I thought so anyway)// said it //loudly).//

Bold

**What about** bold at the start of a line when it's not a list? 
* Here is a **basic test**
**Is this a list item?  It **should** be.
* [=**=]This line is not bold**
* [==]**But this line is bold**
* **This is a bolded list item**

What about bold at the start of a line when it's not a list?

  • Here is a basic test
    • Is this a list item? It should be.
  • **This line is not bold**
  • But this line is bold
  • This is a bolded list item
Quoted and parenthesized:  \\
Inside: He said "**hello**", (and said it **loudly**). \\
Outside: He said **"hello",** (and **(I thought so anyway)** said it **loudly).** \\
Sequences of asterisks ************** (I don't use these and don't care if they don't work) \\
Math formulas, as in [=3 * (a + b * c)=] producing 3 * (a + b * c) ( may be used occasionally)

Quoted and parenthesized:
Inside: He said "hello", (and said it loudly).
Outside: He said "hello", (and (I thought so anyway) said it loudly).
Sequences of asterisks ************** (I don't use these and don't care if they don't work)
Math formulas, as in 3 * (a + b * c) producing 3 * (a + b * c) ( may be used occasionally)

Bold Italic

* This is **//bold italic//** in a sentence.
* Quoted and parenthesized, italic inside: 
** Inside: He said "**//hello//**", (and said it **//loudly//**).
** Outside: He said **//"hello",//** (and **//(I thought so anyway)//** said it **//loudly).//**
* Quoted and parenthesized, bold inside: 
** Inside: He said "//**hello**//", (and said it //**loudly**//).
** Outside: He said //**"hello",**// (and //**(I thought so anyway)**// said it //**loudly).**//
* Bold + italic combinations:
** italic inside: **//bolditalic1//**
** bold inside: //**bolditalic2**//
** overlap1: //to **boldly// go where no man...**
** overlap2: **to //boldly** go where no man...//
  • This is bold italic in a sentence.
  • Quoted and parenthesized, italic inside:
    • Inside: He said "hello", (and said it loudly).
    • Outside: He said "hello", (and (I thought so anyway) said it loudly).
  • Quoted and parenthesized, bold inside:
    • Inside: He said "hello", (and said it loudly).
    • Outside: He said "hello", (and (I thought so anyway) said it loudly).
  • Bold + italic combinations:
    • italic inside: bolditalic1
    • bold inside: bolditalic2
    • overlap1: to boldly go where no man...
    • overlap2: to boldly go where no man...
Quoted and parenthesized, italic inside: \\
Inside: He said "**//hello//**", (and said it **//loudly//**). \\
Outside: He said **//"hello",//** (and **//(I thought so anyway)//** said it **//loudly).//**

Quoted and parenthesized, bold inside: \\
Inside: He said "//**hello**//", (and said it //**loudly**//). \\
Outside: He said //**"hello",**// (and //**(I thought so anyway)**// said it //**loudly).**// 

Quoted and parenthesized, italic inside:
Inside: He said "hello", (and said it loudly).
Outside: He said "hello", (and (I thought so anyway) said it loudly).

Quoted and parenthesized, bold inside:
Inside: He said "hello", (and said it loudly).
Outside: He said "hello", (and (I thought so anyway) said it loudly).

Bold + italic combinations: \\
italic inside: **//bolditalic1//** \\
bold inside: //**bolditalic2**// \\
overlap1: //to **boldly// go where no man...** \\
overlap2: **to //boldly** go where no man...// \\

Bold + italic combinations:
italic inside: bolditalic1
bold inside: bolditalic2
overlap1: to boldly go where no man...
overlap2: to boldly go where no man...

 0: 00.00 00.00 config start
 1: 00.02 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.22 00.21 MarkupToHTML end
 5: 00.22 00.21 MarkupToHTML begin
 6: 00.22 00.21 MarkupToHTML end
 7: 00.22 00.21 MarkupToHTML begin
 8: 00.22 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 9: 00.22 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls end
10: 00.26 00.24 MarkupToHTML end
11: 00.26 00.24 MarkupToHTML begin
12: 00.26 00.25 MarkupToHTML end
13: 00.26 00.25 MarkupToHTML begin
14: 00.26 00.25 MarkupToHTML end
15: 00.26 00.25 MarkupToHTML begin
16: 00.26 00.25 MarkupToHTML end
17: 00.26 00.25 MarkupToHTML begin
18: 00.26 00.25 MarkupToHTML end
19: 00.26 00.25 MarkupToHTML begin
20: 00.26 00.25 MarkupToHTML end
21: 00.27 00.26 MarkupToHTML end
22: 00.28 00.26 MarkupToHTML begin
23: 00.29 00.27 MarkupToHTML end
24: 00.29 00.27 MarkupToHTML begin
25: 00.29 00.28 MarkupToHTML end
26: 00.29 00.28 now
Peak memory: 3,734,920 bytes