Re: Markdown-Discuss Digest, Vol 106, Issue 4

2012-01-13 Thread R (Chandra) Chandrasekhar

On Saturday 14 January 2012 01:15 AM, John Laudun wrote:

The only problem as I see it is that three dashes produce a long
dash and a hyphen rather than an em-dash, although two dashes seem
to work well. But investigating that will have to wait for the
morrow!


I'm afraid you are confusing two different replies. SmartyPants looks
for two hyphens (or tee dashes) and turns them into an em dash. The
three dashes is for another implementation of Markdown. (There are a
variety of "flavors" or "distros" or "forks" or whatever of it.)

john


I took a look at SmartyPants.pl and saw

# Configurable variables:
my $smartypants_attr = "1";  # Blosxom and BBEdit users: change this to 
configure.
 #  1 =>  "--" for em-dashes; no en-dash 
support
 #  2 =>  "---" for em-dashes; "--" for 
en-dashes
 #  3 =>  "--" for em-dashes; "---" for 
en-dashes

 #  See docs for more configuration options.

and changed it to:

# Configurable variables:
# Changed by Chandra on 14 Jan 2012 from 1 to 2
my $smartypants_attr = "2";  # Blosxom and BBEdit users: change this to 
configure.
 #  1 =>  "--" for em-dashes; no en-dash 
support
 #  2 =>  "---" for em-dashes; "--" for 
en-dashes
 #  3 =>  "--" for em-dashes; "---" for 
en-dashes

 #  See docs for more configuration options.

and the "old school" en- and em-dsahes wrok as expected. This has been a 
quick rather than an educated fix, but it works on the command line with 
pipes in Linux.


I am yet to explore what libtext-typography-perl does in this context.

Thanks.

Chandra




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


Re: Markdown-Discuss Digest, Vol 106, Issue 4

2012-01-13 Thread John Laudun
> The only problem as I see it is that three dashes produce a long dash 
> and a hyphen rather than an em-dash, although two dashes seem to work 
> well. But investigating that will have to wait for the morrow!

I'm afraid you are confusing two different replies. SmartyPants looks for two 
hyphens (or tee dashes) and turns them into an em dash. The three dashes is for 
another implementation of Markdown. (There are a variety of "flavors" or 
"distros" or "forks" or whatever of it.)

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


Re: Inline HTML link and mailto: link

2012-01-13 Thread R (Chandra) Chandrasekhar

On Saturday 14 January 2012 12:06 AM, Waylan Limberg wrote:

On Fri, Jan 13, 2012 at 1:15 PM, R (Chandra) Chandrasekhar
  wrote:

May I ask a supplementary question please: How are em-dashes and en-dashes
handled in Markdown?



They aren't. You may want to check out
[smartypants](http://daringfireball.net/projects/smartypants/) for
that which was written by the same author.

In fact, smartypants is a "filter" available on the Markdown Dingus
(select "markdown", "smartypants" or "both").



I have just discovered, thanks to the wonder of Unix pipes, that this works:

markdown filename.md | ./SmartyPants.pl - > filename.html

where SmartyPants.pl resides in the current working directory or in an 
executable path.


The only problem as I see it is that three dashes produce a long dash 
and a hyphen rather than an em-dash, although two dashes seem to work 
well. But investigating that will have to wait for the morrow!


This is a very generous mailing list and my thanks to all who answered 
so helpfully and promptly :-)


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


Re: Inline HTML link and mailto: link

2012-01-13 Thread R (Chandra) Chandrasekhar

On Saturday 14 January 2012 12:05 AM, David Chambers wrote:

How are em-dashes and en-dashes handled in Markdown?


You can include Unicode characters in Markdown documents, so go ahead
and use the actual characters if you want to. On OS X, ⌥- produces an en
dash and ⇧⌥- an em dash.

Many Markdown implementations offer extensions which allow "--" to be
used to represent an en dash and "---" to represent an em dash.


Thank you.

I was hoping for the second solution above that is also used in LaTeX.

I tried downloading SmartyPants but that seems to need Moveable Type to 
work, if I have understood it correctly.


I have also downloaded and installed libtext-typography-perl which 
claims to be "a thin wrapper for John Gruber's SmartyPants plugin for
 various CMSs" but I do not know where SmartyPants.pl should reside for 
this synergy to happen.


TIA.

Chandra


David



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


Re: Inline HTML link and mailto: link

2012-01-13 Thread Waylan Limberg
On Fri, Jan 13, 2012 at 1:15 PM, R (Chandra) Chandrasekhar
 wrote:
> Wow, that was a quick reply!
>
> Yes, indeed, I was putting a space between ] and (. I have corrected that
> and now both the links work as they should :-).
>
> May I ask a supplementary question please: How are em-dashes and en-dashes
> handled in Markdown?
>

They aren't. You may want to check out
[smartypants](http://daringfireball.net/projects/smartypants/) for
that which was written by the same author.

In fact, smartypants is a "filter" available on the Markdown Dingus
(select "markdown", "smartypants" or "both").

-- 

\X/ /-\ `/ |_ /-\ |\|
Waylan Limberg
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Re: Inline HTML link and mailto: link

2012-01-13 Thread David Chambers
>
> How are em-dashes and en-dashes handled in Markdown?


You can include Unicode characters in Markdown documents, so go ahead and
use the actual characters if you want to. On OS X, ⌥- produces an en dash
and ⇧⌥- an em dash.

Many Markdown implementations offer extensions which allow "--" to be used
to represent an en dash and "---" to represent an em dash.

David


On 13 January 2012 10:15, R (Chandra) Chandrasekhar wrote:

> Wow, that was a quick reply!
>
> Yes, indeed, I was putting a space between ] and (. I have corrected that
> and now both the links work as they should :-).
>
> May I ask a supplementary question please: How are em-dashes and en-dashes
> handled in Markdown?
>
> Thank you.
>
> Chandra
>
>
> On Friday 13 January 2012 11:30 PM, Alan Hogan wrote:
>
>> Are you putting spaces between ] and ( ? You shouldn't.
>>
>> ajh
>>
>> On Jan 13, 2012, at 9:52 AM, "R (Chandra)
>> Chandrasekhar">  wrote:
>>
>>  Dear Folks,
>>>
>>> I am just starting out with Markdown and am trying to get two
>>> elements working:
>>>
>>> (1) An inline HTML link; and
>>>
>>> (2) An inline mailto: link
>>>
>>> as shown in the text below:
>>>
>>> We invite you to [browse] 
>>> (http://academy.swanlotus.com/**index.html
>>> )
>>> this website. Take a look and see if you find anything useful. And
>>> do [drop us a line] (mailto:feedb...@swanlotus.com**) with your
>>> comments for improvement.
>>>
>>> I tried it out on Dingus and failed to get the expected HTML
>>> version like:
>>>
>>> We invite you to>> href="http://academy.**swanlotus.com/index.html
>>> ">**browse  this
>>> website. Take a look and see if you find anything useful. And do>> href="mailto:feedback@**swanlotus.com ">drop us
>>> a line  with your
>>> comments for improvement.
>>>
>>> Instead, Dingus gave me:
>>>
>>> We invite you to [browse] 
>>> (http://academy.swanlotus.com/**index.html
>>> )
>>> this website. Take a look and see if you find anything useful. And
>>> do [drop us a line] (mailto:feedb...@swanlotus.com**) with your
>>> comments for improvement.
>>>
>>> This is my first experience with Markdown, although I am conversant
>>> with HTML and very conversant with LaTeX.
>>>
>>> What am I doing wrong and why am I not getting the expected HTML
>>> markup?
>>>
>>> FYI, I am on Kubuntu 11.10 using Markdown, version 1.0.1 from the
>>> standard .deb package.
>>>
>>> Thanks in advance.
>>>
>>> Chandra __**_
>>> Markdown-Discuss mailing list 
>>> Markdown-Discuss@six.pairlist.**net
>>> http://six.pairlist.net/**mailman/listinfo/markdown-**discuss
>>>
>> __**_ Markdown-Discuss
>> mailing list 
>> Markdown-Discuss@six.pairlist.**net
>> http://six.pairlist.net/**mailman/listinfo/markdown-**discuss
>>
>
>
> --
> --
> R (Chandra) Chandrasekhar
> Web: http://swanlotus.com
> email: chyav...@gmail.com
> --
>
> __**_
> Markdown-Discuss mailing list
> Markdown-Discuss@six.pairlist.**net 
> http://six.pairlist.net/**mailman/listinfo/markdown-**discuss
>
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Re: Inline HTML link and mailto: link

2012-01-13 Thread R (Chandra) Chandrasekhar

Wow, that was a quick reply!

Yes, indeed, I was putting a space between ] and (. I have corrected 
that and now both the links work as they should :-).


May I ask a supplementary question please: How are em-dashes and 
en-dashes handled in Markdown?


Thank you.

Chandra

On Friday 13 January 2012 11:30 PM, Alan Hogan wrote:

Are you putting spaces between ] and ( ? You shouldn't.

ajh

On Jan 13, 2012, at 9:52 AM, "R (Chandra)
Chandrasekhar"  wrote:


Dear Folks,

I am just starting out with Markdown and am trying to get two
elements working:

(1) An inline HTML link; and

(2) An inline mailto: link

as shown in the text below:

We invite you to [browse] (http://academy.swanlotus.com/index.html)
this website. Take a look and see if you find anything useful. And
do [drop us a line] (mailto:feedb...@swanlotus.com) with your
comments for improvement.

I tried it out on Dingus and failed to get the expected HTML
version like:

We invite you tohttp://academy.swanlotus.com/index.html";>browse  this
website. Take a look and see if you find anything useful. And domailto:feedb...@swanlotus.com";>drop us a line  with your
comments for improvement.

Instead, Dingus gave me:

We invite you to [browse] (http://academy.swanlotus.com/index.html)
this website. Take a look and see if you find anything useful. And
do [drop us a line] (mailto:feedb...@swanlotus.com) with your
comments for improvement.

This is my first experience with Markdown, although I am conversant
with HTML and very conversant with LaTeX.

What am I doing wrong and why am I not getting the expected HTML
markup?

FYI, I am on Kubuntu 11.10 using Markdown, version 1.0.1 from the
standard .deb package.

Thanks in advance.

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

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



--
--
R (Chandra) Chandrasekhar
Web: http://swanlotus.com
email: chyav...@gmail.com
--
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Re: Inline HTML link and mailto: link

2012-01-13 Thread Alan Hogan
Are you putting spaces between ] and ( ? You shouldn't. 

ajh

On Jan 13, 2012, at 9:52 AM, "R (Chandra) Chandrasekhar"  
wrote:

> Dear Folks,
> 
> I am just starting out with Markdown and am trying to get two elements 
> working:
> 
> (1) An inline HTML link; and
> 
> (2) An inline mailto: link
> 
> as shown in the text below:
> 
> We invite you to [browse] (http://academy.swanlotus.com/index.html) this 
> website. Take a look and see if you find anything useful. And do [drop us a 
> line] (mailto:feedb...@swanlotus.com) with your comments for improvement.
> 
> I tried it out on Dingus and failed to get the expected HTML version like:
> 
> We invite you to http://academy.swanlotus.com/index.html";>browse 
> this website. Take a look and see if you find anything useful. And do  href="mailto:feedb...@swanlotus.com";>drop us a line with your comments 
> for improvement.
> 
> Instead, Dingus gave me:
> 
> We invite you to [browse] (http://academy.swanlotus.com/index.html) this 
> website. Take a look and see if you find anything useful. And do [drop us a 
> line] (mailto:feedb...@swanlotus.com) with your comments for improvement.
> 
> This is my first experience with Markdown, although I am conversant with HTML 
> and very conversant with LaTeX.
> 
> What am I doing wrong and why am I not getting the expected HTML markup?
> 
> FYI, I am on Kubuntu 11.10 using Markdown, version 1.0.1 from the standard 
> .deb package.
> 
> Thanks in advance.
> 
> Chandra
> ___
> Markdown-Discuss mailing list
> Markdown-Discuss@six.pairlist.net
> http://six.pairlist.net/mailman/listinfo/markdown-discuss
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Inline HTML link and mailto: link

2012-01-13 Thread R (Chandra) Chandrasekhar

Dear Folks,

I am just starting out with Markdown and am trying to get two elements 
working:


(1) An inline HTML link; and

(2) An inline mailto: link

as shown in the text below:

We invite you to [browse] (http://academy.swanlotus.com/index.html) this 
website. Take a look and see if you find anything useful. And do [drop 
us a line] (mailto:feedb...@swanlotus.com) with your comments for 
improvement.


I tried it out on Dingus and failed to get the expected HTML version like:

We invite you to href="http://academy.swanlotus.com/index.html";>browse this website. 
Take a look and see if you find anything useful. And do href="mailto:feedb...@swanlotus.com";>drop us a line with your 
comments for improvement.


Instead, Dingus gave me:

We invite you to [browse] (http://academy.swanlotus.com/index.html) this 
website. Take a look and see if you find anything useful. And do [drop 
us a line] (mailto:feedb...@swanlotus.com) with your comments for 
improvement.


This is my first experience with Markdown, although I am conversant with 
HTML and very conversant with LaTeX.


What am I doing wrong and why am I not getting the expected HTML markup?

FYI, I am on Kubuntu 11.10 using Markdown, version 1.0.1 from the 
standard .deb package.


Thanks in advance.

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