Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Formatting inside a list #28

Closed
GoogleCodeExporter opened this issue Jul 3, 2015 · 5 comments
Closed

Formatting inside a list #28

GoogleCodeExporter opened this issue Jul 3, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Invalid

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant