Simon Luo | 8 Apr 10:20 2014

Hot to get catalog in python markdown

Hi All:

Our website use markdown to publish the blog, and Django framework we
used. Yes, it run very well, but i can find any method to get catalog
from my md file, so anyone can help me? Thanks.

Best Regards

--

-- 
ThStack Inc.
Simon Luo | CEO & Founder of ThStack Inc.
www.thstack.com
Mail: simonluo <at> thstack.com  | xcluo <at> thstack.com
Tom Maynard | 26 Mar 18:25 2014

Links in Code Blocks

Is it possible to have a live hyperlink *inside* a \`\`\`Code 
Block\`\`\`?  Something like:
```markdown
This code block contains an embedded 
[hyperlink](http://en.wikipedia.org/wiki/Hyperlink). Is it possible to 
render it as an active link instead of source?
```
I realize that Markdown support already exists, but it doesn't work.  
And, I also realize that what I'm asking for is diametrically opposed to 
what a Code Block is meant to be (even one with syntax highlighting.  
It's a "WYSIWYG" functionality, and I'm trying to circumvent it (at 
least partially).

Is there a way?
Jak Wings | 11 Mar 21:40 2014
Picon

Strictdown -- My Markdown-like markup language for writing HTML documents

Hi, everybody:

I have finally finished the design of my markup language Strictdown and its converter written in JavaScript. :)

I hope you will like it! Any feedback is welcome.

Best regards,
Jak Wings
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
Jak Wings | 5 Mar 16:18 2014
Picon

How often do you use inline images? <p> wrapper is really useful?

I’m designing my own Markdown-like language. :) I just don’t know how important it is to use inline
images. What do you think?

Best regards,
Jak Wings

_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
cannonballrag@gmail.com | 4 Mar 19:13 2014
Picon

Re: Markdown-Discuss Digest, Vol 132, Issue 2

Thanks d.w.
 
cannonballrag <at> gmail.com
 
Date: 2014-03-05 01:00
Subject: Markdown-Discuss Digest, Vol 132, Issue 2
Send Markdown-Discuss mailing list submissions to
markdown-discuss <at> six.pairlist.net
 
To subscribe or unsubscribe via the World Wide Web, visit
http://six.pairlist.net/mailman/listinfo/markdown-discuss
or, via email, send a message with subject or body 'help' to
markdown-discuss-request <at> six.pairlist.net
 
You can reach the person managing the list at
markdown-discuss-owner <at> six.pairlist.net
 
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Markdown-Discuss digest..."
 
 
Today's Topics:
 
   1. Re: Hi, question about utf-8 saved source (Dave Walker)
 
 
----------------------------------------------------------------------
 
Message: 1
Date: Mon, 3 Mar 2014 19:59:18 -0500
From: Dave Walker <marmoset <at> gmail.com>
Subject: Re: Hi, question about utf-8 saved source
To: "Discussion related to Markdown."
<markdown-discuss <at> six.pairlist.net>
Message-ID:
<CAGCx5TntXZTb5WUg72=5HhRy38REvzLHRD2S3=HGMNnt-UrQzQ <at> mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
 
If you want to stick with Markdown.pl, you can always pipe it through HTML
Tidy (I use the HTML 5 fork)
( http://w3c.github.io/tidy-html5/ ) like so:
 
cat mytext.md | tidy5 -utf8 -ashtml
 
  -d.w.
 
 
On Mon, Mar 3, 2014 at 9:56 AM, cannonballrag <at> gmail.com <
cannonballrag <at> gmail.com> wrote:
 
>
> Hi, does Markdown.pl have any options to support utf-8 saved source?
> currently, i can only solve it by adding a html utf-8 header like below:
>
> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
>
> Thanks!
>
> ------------------------------
>  cannonballrag <at> gmail.com
>
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss <at> six.pairlist.net
> http://six.pairlist.net/mailman/listinfo/markdown-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20140303/8f5bfa73/attachment-0001.html>
 
------------------------------
 
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
 
 
End of Markdown-Discuss Digest, Vol 132, Issue 2
************************************************
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
cannonballrag@gmail.com | 4 Mar 19:13 2014
Picon

Re: Markdown-Discuss Digest, Vol 132, Issue 1

 
Thanks for the explaination, Fletcher.
 
cannonballrag <at> gmail.com
 
Date: 2014-03-04 01:00
Subject: Markdown-Discuss Digest, Vol 132, Issue 1
Send Markdown-Discuss mailing list submissions to
markdown-discuss <at> six.pairlist.net
 
To subscribe or unsubscribe via the World Wide Web, visit
http://six.pairlist.net/mailman/listinfo/markdown-discuss
or, via email, send a message with subject or body 'help' to
markdown-discuss-request <at> six.pairlist.net
 
You can reach the person managing the list at
markdown-discuss-owner <at> six.pairlist.net
 
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Markdown-Discuss digest..."
 
 
Today's Topics:
 
   1. Hi, question about utf-8 saved source (cannonballrag <at> gmail.com)
   2. Re: Hi, question about utf-8 saved source (Fletcher T. Penney)
 
 
----------------------------------------------------------------------
 
Message: 1
Date: Mon, 3 Mar 2014 22:56:30 +0800
From: "cannonballrag <at> gmail.com" <cannonballrag <at> gmail.com>
Subject: Hi, question about utf-8 saved source
To: Markdown-Discuss <Markdown-Discuss <at> six.pairlist.net>
Message-ID: <201403032256281963033 <at> gmail.com>
Content-Type: text/plain; charset="gb2312"
 
 
Hi, does Markdown.pl have any options to support utf-8 saved source?
currently, i can only solve it by adding a html utf-8 header like below:
 
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
 
Thanks!
 
 
 
 
cannonballrag <at> gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20140303/c6e560a4/attachment-0001.htm>
 
------------------------------
 
Message: 2
Date: Mon, 03 Mar 2014 10:01:39 -0500
From: "Fletcher T. Penney" <fletcher <at> fletcherpenney.net>
Subject: Re: Hi, question about utf-8 saved source
To: "Discussion related to Markdown."
<markdown-discuss <at> six.pairlist.net>
Message-ID: <53149953.6010906 <at> fletcherpenney.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
Markdown.pl proper (the original perl script by John Gruber) doesn't
create complete HTML documents.  It creates HTML that is intended to be
inserted inside a "wrapper" that forms a complete HTML document.  It
therefore has no concept of character encoding, since that should be
handled by the wrapper (in the `<head>` for example).
 
 
Some other Markdown variants (e.g. my MultiMarkdown) can create
"complete" HTML documents, including a `<head>` and the like.  By doing
that, they can support UTF-8.  For example, in MMD just include some
metadata (such as a title, or author), and the result is a complete HTML
document with UTF-8 support.
 
 
Otherwise if you want to stick with Markdown.pl, your solution is
probably the best available.
 
 
Fletcher
 
http://fletcherpenney.net/multimarkdown/
 
 
 
On 3/3/14, 9:56 AM, cannonballrag <at> gmail.com wrote:
> Hi, does Markdown.pl have any options to support utf-8 saved source?
> currently, i can only solve it by adding a html utf-8 header like below:
> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
> Thanks!
> ------------------------------------------------------------------------
> cannonballrag <at> gmail.com
>
>
> _______________________________________________
> Markdown-Discuss mailing list
> Markdown-Discuss <at> six.pairlist.net
> http://six.pairlist.net/mailman/listinfo/markdown-discuss
>
 
--
Fletcher T. Penney
fletcher <at> fletcherpenney.net
 
 
------------------------------
 
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
 
 
End of Markdown-Discuss Digest, Vol 132, Issue 1
************************************************
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
cannonballrag@gmail.com | 3 Mar 15:56 2014
Picon

Hi, question about utf-8 saved source

 
Hi, does Markdown.pl have any options to support utf-8 saved source?
currently, i can only solve it by adding a html utf-8 header like below:
 
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
 
Thanks!
 
cannonballrag <at> gmail.com
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
Peter Watts | 10 Feb 03:56 2014

inline html - usemap

Hi All,

I am trying to add an image with clickable areas in the GitHub wiki using inline html (pretty sure markdown doesn’t support).

An example bit of code I have used is:

<div align="center">
  <img height="85%" src="../blob/master/UsefulDocs/images/paint-by-numbers.png?raw=true" usemap="#wiki-kartta"/>
  <map id="wiki-kartta" name="wiki-kartta">
    <area shape="rect" coords="0,0,82,126"  href="http://gilimanuk.com"/>
  </map>
</div> 

The following is what ends up in the html produced by gollum:

<div align="center">
  <img height="85%" src="../blob/master/UsefulDocs/images/paint-by-numbers.png?raw=true" usemap="#wiki-kartta"><map id="wiki-kartta" name="wiki-kartta"><area shape="rect" coords="0,0,82,126"></map>
</div>

Two things are happening:
  • the image appears but isn’t clickable
  • The href is being removed

Any ideas?

Regards,

Peter
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
Sherwood Botsford | 2 Feb 17:33 2014
Picon

Excel to Markdown

While MMD is wonderful, much of the time you want to do other things with the data first.

My problem:  I have a whole bunch of small tables I keep on an excel spreadsheet for setting my prices for various numbers of trees and whatnot.


Here's a couple recipes for using excel data.

Layout your spreadsheet as normal.
Insert a blank row for the formating row.
Create a wide column to the right of your table

Each row corresponding to a table row has a formula something like this:

"|"&A1&"|"&B1&"|"&C1...

You will need to modify for possible grouping.  E.g. A one line title on a 5 column table will end up being
"|"&A1&"||||"


In the blank cell corresponding to the formatting row, type an appropriate string of |:--------:|...

My problem was a bit messier than that.  I advertise on Canada kijiji (not the same as the US version)  They allow some formatting in ads but do not have a table format at all.

I needed as ascii table.  The results of cut and paste from excell into a text processor are less than stellar, as data is separated with a single tab character.  Anything that lines up is coincidence.

My route was to take this notion one step further, and make an ascii formated column that would work for either MMD or for text base ads.

First attempt:

"|" & A1 & REPT(" ",15-LEN(A1)) &
"|" & B1 &...

I didn't like the hard coding of the column widths.
And if your source column is $2.50 it comes across as 2.5

Second attempt.

1 blank column for column I want to use.

If our table is 5 columns wide, I need another 5 columns.

F1 in this one has the formula =TEXT(A1,"$0.00")
Replicate across and down as needed.

Secondly, insert a row above.  In this row, but the column width you want for the output.

Now your formula for K2 will look like this:
"|" & F1 & REPT(" ",K$1-LEN(F1)) &
"|" & G1 ...

At this point if I want flush right text, I have to reverse
the REPT and the Cell reference.  No thoughts of centering.

Sample output results

|Bareroot Bundles of 25 2-3 year olds                      ||||
|Bundles             |# Trees   |      Cost| Price Per Tree|
|:-------------------|:---------|---------:|--------------:|
|5 Trees             |5         |    $30.00|          $6.00|
|Single Bundle       |25        |    $75.00|          $3.00|
|5 Bundles           |125       |   $300.00|          $2.40|
|10 Bundles          |250       |   $525.00|          $2.10|



Respectfully,

Sherwood of Sherwood's Forests

Sherwood Botsford
Sherwood's Forests --  http://Sherwoods-Forests.com
780-848-2548
50042 Range Rd 31
Warburg, Alberta T0C 2T0
_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
Michel Fortin | 29 Nov 23:09 2013
Picon

[ANN] PHP Markdown Lib 1.4.0, PHP Markdown Extra 1.2.8, PHP Markdown 1.0.2

This is a new update to PHP Markdown. The most notable feature is that Markdown Extra now supports
Github-flavored backtick fenced code blocks. You can download it from here:
<http://michelf.ca/projects/php-markdown/>

Changes since last version
--------------------------

In PHP Markdown Lib 1.4.0, PHP Markdown Extra 1.2.8, and PHP Markdown 1.0.2:

*	Added support for the `tel:` URL scheme in automatic links.

		<tel:+1-111-111-1111>
	
	It gets converted to this (note the `tel:` prefix becomes invisible):
	
		<a href="tel:+1-111-111-1111">+1-111-111-1111</a>

In PHP Markdown Lib 1.4.0 and PHP Markdown Extra 1.2.8:

*	Added backtick fenced code blocks to MarkdownExtra, originally from
	Github-Flavored Markdown.

In PHP Markdown Lib 1.4.0:

*	Added an interface called MarkdownInterface implemented by both 
	the Markdown and MarkdownExtra parsers. You can use the interface if
	you want to create a mockup parser object for unit testing.

*	For those of you who cannot use class autoloading, you can now
	include `Michelf/Markdown.inc.php` or `Michelf/MarkdownExtra.inc.php` (note 
	the `.inc.php` extension) to automatically include other files required
	by the parser.

--

-- 
Michel Fortin
michel.fortin <at> michelf.ca
http://michelf.ca
bowerbird | 24 Nov 21:27 2013
Picon

re: yet more harmful

christoph said:
>   Thanks for that article, bowerbird,
>   I found it quite entertaining.

you're welcome. i'm glad.

***

i wrote the "harmful" piece as my personal "goodbye",
to markdown in general, and this listserve in particular.

so i'll answer here, but let's not make it too protracted.
so, if you respond in any lengthy way, go backchannel.

**

christoph said:
>   Fragmentation of Markdown specifications
>   probably isn’t a great problem for most people
>   because most texts are short-lived.
...
>   Most texts are also short-form

this, all by itself, in a reverse-field sort of way,
touches deep and important issues that would
surely cause this thread to go entirely too long.

so let me just answer your points with a question:

"what is society's current solution as its file-format
for historical archive and re-use of its documents,
and how well is it now serving those dual purposes?"

***

christoph said:
>   I would like to play with zml — however,
>   have you even published an app or some script?

i've built, coded, researched, and recoded a whole system.
then tore it down and built it again.  and again and again.
then ported in to perl.  then rebuilt it again.  and again.
then ported it to python.  then javascript.  then rebuilt it.

i've got offline versions (cross-platform) and web-apps.
i've got server-side, a.p.i., client-side, and all-in-a-page.

i can load-and-save from local-storage, your hard-drive,
dropbox-and-5-other-cloud-services, or one of my sites.

i am now beginning a phased release of all these things.

i must confess that i am confused about how to do this,
but here is one of the initial thrusts toward that direction:

>   
http://www.kickstarter.com/projects/bowerbird/jaguar-cub-a-simple-tool-for-great-e-books

i'd appreciate any feedback you have on any of that.
goes for anyone here.  if you wanna see stuff, ask me.

***

christoph said:
>   I tend to disagree on your opinion on split screens
>   for input and output. I find it very distracting
>   to see what my text will be rendered as while I
>   try to concentrate on its structure and content.

the preponderance of wysiwyg is an indication that
you're the one who's out of step with the mainstream.

but i understand your position, because i often share it.
most markdown users are comfortable without preview,
or they wouldn't be using markdown.

so i am not advocating a preview should be "required".
(as if we could even do that.)  especially on a first-draft.

still, terpstra's "marked" has proven a definite demand.

>   Also, since I care a lot about typography, too

in a sense, that refutes what you just said right before.

unless the reason it is "very distracting" is _because_
you "care a lot about typography".  which i understand.

either way, you can just turn off the preview.

or -- better yet -- learn to ignore it selectively.

i've learned that the people who care about typography
generally care about it too much, and that they would be
good to let go of a little of it, for their sake, and for ours.

>   seeing a — for the most part —
>   preliminary and incomplete rendering
>   of the final output immediately

i'm not sure why you think the rendering will be
"preliminary and incomplete".  you see some text
-- perhaps a couple paragraphs -- and their output.
and if the text doesn't change, the display is "final".

but yes, again, if your text is still in a jumble, then
a preview won't mean much.  so simply turn it off.

>   makes me want to work on the displaying rules
>   (CSS, in most cases). Where’s that different
>   from fiddling with styles in Word etc.?

the system doesn't make it easy to fiddle with .css.

it only makes it easy to edit the text.  that's by design.

at some point, you have to develop the self-control.

>   I do like the way some editors give me a hint of
>   what the text will be like in the final output
>   by way of syntax highlighting or semi-wysiwyg

i see you've made it to the half-way house in your
quest to reach the goal of full self-control.  good job!      :+)

half-way has always seemed half-assed to me, but
to each his own.

>   à la Byword or Writer. What is your take on those?

my attention-span is too large for one line at a time.         ;+)

heck, i don't even like the systems which require me
to chop up books into _chapters_.  too reductionistic.

but the world of writers is large and highly variegated.
i value the final product, not the way it was generated.
so as far as tools and processes go, i say it's all good.
if it works for you, _use_it;_ don't let anyone sway you.

>   the bigger problem we face today is the _output_
>   of electronic texts. A good looking Kindle book,
>   for example, has yet to be shown to me.

i agree with you on the main point.

then again, almost everyone agrees on the main point.

but once you try to go deeper, most people cannot say
what it is that would _make_ a "good-looking e-book".

(and often their inarticulation becomes _so_ engulfing
it can lead them to strike back at you for even asking,
as if you'd asked them to justify some religious tenet.)

as for kindle e-books, we'd have to decide _what_
specifics to discuss, from how output is a result of
transitory factors (e.g., the chip, the screen) that will
certainly improve in later/future models, rather than
factors that might be more slow to change (such as
the file-format, where we might be stuck with kf8 for
longer than we want, like we were stuck with mobi),
versus things that will never change (like the sheer
impossibilities of screens the size of an index-card).

>   Why can’t ebooks look as nice as printed books?

e-books can look as nice as printed books.

indeed, we can make an e-book that looks
_exactly_ like the printed-book, a clone,
where the small deviations are because
the digital one is _closer_to_perfection_
(e.g., the leading is far more consistent).

heck, these .pdf examples were created using ms-word:
>   http://www.ibiblio.org/ebooks/Einstein/Einstein_Relativity.pdf
>   http://www.ibiblio.org/ebooks/Cather/Antonia/Antonia.pdf
>   http://www.ibiblio.org/ebooks/Geronimo/GerStory.pdf

more at:
>   http://www.ibiblio.org/ebooks/

also see:
>   
http://onlinebooks.library.upenn.edu/webbin/bparchive?year=2006&post=2006-02-28,2

those were .pdf, yes, but you can do it with .html.

as long as you are working with one screen-size,
and don't allow the font-size to be changed either
-- which, remember, held true for printed-books --
it is possible to make e-books that look quite nice,
especially now that we have "retina" quality screens.

but we want our e-books to do more than that today.

i'm not defending today's e-book apps, because they
are crap, but a simple comparison with "printed books"
ignores a lot of the complications of the actual situation.

>   See an exception here: http://practicaltypography.com

i think betteridge is full'o'crap too.  but no need to discuss.
not here, for sure.  but all his main points are throwbacks.

>   Probably because html, epub, mobi and the like
>   are not adequate?

"adequate" is a relative term, so it's difficult to decide.

but we can easily decide they are far too far from ideal,
and that anyone with a moderate amount of book-sense
(like me) and a moderate level of coding-skills (like me)
can do a better job than the bureaucrats in charge so far,
whose monstrosities were matched only by the sad state
of general library software in toto, and now healthcare.gov.

>   When writing some longer texts years ago
>   I quite liked Tex.

try "multimedia composer", from fletcher penney.

>   http://multimarkdown.com

let me know how it works for you, i'm curious.

>   Wouldn’t it be possible for ebook readers
>   to render TeX documents?

too many complications there, at the moment.

insufficient chip speed, no rendering library,
very little demand, and no programming skill.

heck, the current batch of idiots can't even get
_margins_ straight, and you want them to do
_mathematical_equations?_  ain't gonna work.

***

again, i'd appreciate any feedback, backchannel.

-bowerbird

_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss <at> six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Gmane