[OT] Markdown rendering differently
Aaron VonderHaar
gruen0aermel at gmail.com
Thu Jan 20 17:45:50 EST 2005
Nothing to do with markdown; your shell is interpolating $8 and $5.
Compare, (using bash),
% echo "$"
$
% echo "$8"
% echo "$86"
6
% echo "${86}"
% echo '$'
$
% echo '$8'
$8
% echo '$86'
$86
% echo '${86}'
${86}
% bash -c ' echo "$8" ' 0 1 2 3 4 5 6 7 86
86
On Thu, 20 Jan 2005 14:20:04 -0800, Andy Fragen <lists at thefragens.com> wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> I'm using Markdown from the command line using the following syntax.
>
> % echo "string to process" | perl Markdown.pl
>
> If I run % echo "$" | perl Markdown.pl, I get <p>$</p> -- expected
>
> If I run % echo "$8" | perl Markdown.pl, I get nothing. I would expect
> <p>$8</p>
>
> If I run % echo "$56" | perl Markdown.pl, I get <p>6</p>, I expect <p>$56</p>
>
> Why is this happening? If I escape the '$' then it renders as expected.
> Should I have to escape it?
>
> --
> Andy Fragen
More information about the Markdown-Discuss
mailing list