Re: Entity conversion glitch?

2008-02-03 Thread david parsons
On Sun, Feb 03, 2008 at 06:22:31PM +0100, Petite Abeille wrote:
> `... AT&T; however ...' -> `... AT&T; however ...'

> Bug? Feature?

   I'd guess "design" -- &T; isn't a very good html entity, but
   it matches &[a-zA-Z0-9]+;



   -david parsons
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Re: Markdown MIME type?

2008-02-03 Thread Aristotle Pagaltzis
* Petite Abeille <[EMAIL PROTECTED]> [2008-02-03 17:55]:
> What MIME type do people use for Markdown?

Regrettably, there still isn’t one registered for Markdown. If my
reading of [RFC 4288] is correct, John shouldn’t have any trouble
registering eg. `text/vnd.daringfireball.markdown` using the
application form at .
(Most of the “mandatory” fields in that form apply only to MIME
types registered in the standards tree, not the vendor tree.)

Hint hint, nudge nudge.

[RFC 4288]: http://tools.ietf.org/html/rfc4288

> text/markdown?
> text/plain?
>
> Suggestions?

I end up using `text/plain` most of the time because browsers
throw up a download box whenever they encounter an unknown MIME
type, even though [RFC 2046] explicitly says they should treat
any unknown `text/*` MIME type as `text/plain`.

[RFC 2046]: http://tools.ietf.org/html/rfc2046

Regards,
-- 
Aristotle Pagaltzis // 
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Re: Entity conversion glitch?

2008-02-03 Thread Waylan Limberg
I would say this is a minor bug, and an interesting edge case as well.
The cause is the semi-colon following the `T`. `&T;` looks like an
html entity. If you remove the semicolon, the `&` is properly
converted to `&`.

In python-markdown, you can escape the `&` and you will get the expected output:

under a license from AT\&T; however, others were based on BSD instead.

becomes:

under a license from AT&T; however, others were based on BSD instead.


Unfortunately, this does not seem to work in the other implementations.

On Feb 3, 2008 12:22 PM, Petite Abeille <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Given the following text:
>
> under a license from AT&T; however, others were based on BSD instead.
>
> Daring Fireball's Markdown Dingus produces:
>
> under a license from AT&T; however, others were based on BSD
> instead.
>
> Note how the '&' is not escaped to '&'.
>
> Bug? Feature?
>
> Thanks in advance.
>
> Kind regards,
>
> PA.
> ___
> Markdown-Discuss mailing list
> Markdown-Discuss@six.pairlist.net
> http://six.pairlist.net/mailman/listinfo/markdown-discuss
>



-- 

Waylan Limberg
[EMAIL PROTECTED]
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Entity conversion glitch?

2008-02-03 Thread Petite Abeille

Hello,

Given the following text:

under a license from AT&T; however, others were based on BSD instead.

Daring Fireball's Markdown Dingus produces:

under a license from AT&T; however, others were based on BSD  
instead.


Note how the '&' is not escaped to '&'.

Bug? Feature?

Thanks in advance.

Kind regards,

PA.
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Markdown MIME type?

2008-02-03 Thread Petite Abeille

Hello,

What MIME type do people use for Markdown?

text/markdown?
text/plain?

Suggestions?

Thanks in advance.

Kind regards,

PA.
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss