jawkom / markdownsharp

Automatically exported from code.google.com/p/markdownsharp
0 stars 0 forks source link

Formatting inside a list #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to use italic and bold formatting inside a list
2. This is a bullet point list, not numbering.

What is the expected output? What do you see instead?
This might not be in the markdown spec, but I'd expect formatting to work 
inside lists.

Original issue reported on code.google.com by mrshrink...@gmail.com on 17 Jan 2010 at 9:35

GoogleCodeExporter commented 9 years ago
seems OK to me

--------------------------------------------
- this is
- a **list**
- of _stuff_
--------------------------------------------

see output in BabelMark:

http://is.gd/6ucoz

Original comment by wump...@gmail.com on 18 Jan 2010 at 3:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Here's the markdown:

=============
Whe**re** does "th", "st","nd" or "rd" appear below?

- mo**nd**ay
- tuesday
- wednesday
- **th**ursday
- friday
- satu**rd**ay
- su**nd**ay

- january
- february
- march
- april
- may
- june
- july
- augu**st**
- september
- october
- november
- december

However you know those 4 will always be followed by a space. So unless I've 
missed 
something, a simple

    value = value.Replace("August","Augus").Replace("nd ","").Replace("st 
","").Replace("nd ","").Replace("rd ","").Replace("Augus","August");
    DateTime dt;
    DateTime.TryParseExact(value,"DDDD dd MMMM yyyy", 
DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out dt);

==================

In babelmark it produces:

<ul>
<li>mo<strong>nd</strong>ay</li>
<li>tuesday</li>
<li>wednesday</li>
<li><strong>th</strong>ursday</li>
<li>friday</li>
<li>satu<strong>rd</strong>ay</li>
<li><p>su<strong>nd</strong>ay</p></li>
<li><p>january</p></li>
<li>february</li>
<li>march</li>
<li>april</li>
<li>may</li>
<li>june</li>
<li>july</li>
<li>augu<strong>st</strong></li>
<li>september</li>
<li>october</li>
<li>november</li>
<li>december</li>
</ul>

It's from stackoverflow:

http://stackoverflow.com/questions/2058639/parsing-a-date-like-wednesday-13th-
january-2010-with-net/2058960#2058960

Original comment by mrshrink...@gmail.com on 18 Jan 2010 at 10:25

GoogleCodeExporter commented 9 years ago
This must be the StrictBoldItalic property set to true on stackoverflow.com, so 
this 
can be closed :o]

Original comment by mrshrink...@gmail.com on 18 Jan 2010 at 10:27

GoogleCodeExporter commented 9 years ago
yes, you are correct, this is StrictBoldItalic in effect.

If you need intra-word bold or italic with StrictBoldItalic in effect, use  or 
<i>

Original comment by wump...@gmail.com on 18 Jan 2010 at 3:48