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.01 00.01 config end
 2: 00.11 00.11 MarkupToHTML begin
 3: 00.11 00.11 MarkupToHTML begin
 4: 00.12 00.12 MarkupToHTML end
 5: 00.12 00.12 MarkupToHTML begin
 6: 00.12 00.12 MarkupToHTML end
 7: 00.12 00.12 MarkupToHTML begin
 8: 00.12 00.12 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 9: 00.12 00.12 ReadApprovedUrls SiteAdmin.ApprovedUrls end
10: 00.15 00.15 MarkupToHTML end
11: 00.15 00.15 MarkupToHTML begin
12: 00.16 00.15 MarkupToHTML end
13: 00.16 00.15 MarkupToHTML begin
14: 00.16 00.15 MarkupToHTML end
15: 00.16 00.15 MarkupToHTML begin
16: 00.16 00.15 MarkupToHTML end
17: 00.16 00.15 MarkupToHTML begin
18: 00.16 00.15 MarkupToHTML end
19: 00.16 00.15 MarkupToHTML begin
20: 00.16 00.15 MarkupToHTML end
21: 00.17 00.16 MarkupToHTML end
22: 00.17 00.16 MarkupToHTML begin
23: 00.19 00.18 MarkupToHTML end
24: 00.19 00.18 MarkupToHTML begin
25: 00.19 00.18 MarkupToHTML end
26: 00.19 00.18 now
Peak memory: 3,373,928 bytes