Displaying 20 results from an estimated 900 matches similar to: "Escaping inside code blocks?"
2006 Dec 27
4
Maruku: a better Markdown interpreter for Ruby.
Hello to all!
Maruku is a Markdown interpreter written in Ruby. It is released under the GPL.
Maruku implements the original Markdown syntax and all the
improvements in PHP Markdown Extra. Moreover, it implements some ideas
from MultiMarkdown, and adds a syntax for specifying metadata for
block elements.
Unlike Bluecloth, Maruku creates an in-memory representation of the
document tree, and this
2006 Dec 29
6
Doubt about standard syntax
I have a doubt about the standard syntax (actually, it's the only test
that maruku doesn't pass yet).
Lists MUST be preceded by an empty line?
So the following are only 4 paragraphs, without list items, right?
-----------
Paragraph and no space:
* ciao
Paragraph and 1 space:
* ciao
Paragraph and 3 spaces:
* ciao
Paragraph and 4 spaces:
* ciao
-----------
In other words, a
2006 Dec 29
3
Leading blank lines in codeblocks ignored?
(In the following I write <tab> because my MUA strips tabs)
Consider the code:
----
Paragraph
<tab>
<tab> Line
<tab>
----
or even:
----
Paragraph
<tab><space>
<tab> Line
<tab>
----
Markdown.pl ignores the leading blank line in the code block.
Is this intended behaviour?
--
Andrea Censi
"Life is too important to be taken
2006 Dec 30
3
problems with escaping backticks
I can't escape backticks if on a line with other code:
$ echo 'maybe use `fixed face` for `/path/to/file` by using \`back ticks\`
around it' | /usr/pkg/bin/Markdown
<p>maybe use <code>fixed face</code> for <code>/path/to/file</code> by
using \<code>back ticks\</code> around it</p>
and this is even more wrong:
$ echo 'maybe use
2007 Mar 04
5
div & span support
> [John Fraser:] Being able to wrap Markdown text in divs and spans ...
I find div and span tags quite useful. Here is an example of the syntax I'm presently using.
[[ {#orchard}
Contents of div here. And ~this{.plum}~ is how I do spans.
]]
becomes
<div id="orchard">
<p>Contents of div here. And <span class="plum">this</span> is how I do
2007 Mar 04
1
Maruku + webgen - access to meta-information from content converter
Hi!
I am the author of Maruku (http://maruku.rubyforge.org/), a
Markdown-superset interpreter.
At the moment I am
1) learning webgen
2) integrating Maruku+webgen
3) converting my website to webgen,
so I have many questions (one question, one message).
First one: I wrote the straightforward maruku.rb converter (see attachment).
In a content converter, how can I access the meta-information of
2007 Jan 02
3
Revised - Revised 2005 proposal for meta-data
Happy new year!
This is the revised revised proposal:
http://maruku.rubyforge.org/proposal.md
http://maruku.rubyforge.org/proposal.html
http://maruku.rubyforge.org/proposal.pdf
I wait for comments.
--
Andrea Censi
"Life is too important to be taken seriously" (Oscar Wilde)
Web: http://www.dis.uniroma1.it/~censi
2006 Dec 29
3
Revised 2005 proposal for meta-data
Hello to all!
This is the revised 2005 proposal for meta-data, much more in detail:
http://maruku.rubyforge.org/proposal.md
http://maruku.rubyforge.org/proposal.html
http://maruku.rubyforge.org/proposal.pdf
I wait for comments.
At the end of the document, there are some open issues.
And I need a regexp wizard to look over the "grammar" section.
Cheers,
--
Andrea Censi
2007 Jan 10
1
Proposal for meta-data (third revision)
Hello again!
This is the revised revised revised proposal:
http://maruku.rubyforge.org/proposal.md
http://maruku.rubyforge.org/proposal.html
http://maruku.rubyforge.org/proposal.pdf
The main change was to use an opening string of brace+colon "{:" to
not lock-up the precious "{" forever, so that in the future one could
think of using the braces also for other purposes.
2008 Mar 22
7
Babelmark
I'm currently attempting to write a spec for parsing Markdown Extra,
and since one goal is to minimize the differences in output between
implementations, I've made a tool allowing me to compare who does what
for any given input. I hope this can also facilitate future
discussions about the syntax.
So here's Babelmark, a testbed for various Markdown implementations
were you
2007 Mar 09
3
Transformation order
I see that the well-defined order for transforming a page to HTML is:
- Transform the content using the content converter
...
- Replace tags
I think it should be the other way around.
I wrote this plugin that transform
{flickr: <url of the photo>}
into something like:
<div> Foto, caption, etc. </div>
Now, because of the order of transformations, the
2007 Mar 04
1
Questions about tags
Two questions about tags:
1) How can I disable tags execution? In my webpage I use a lot of "{"
"}" (LaTeX / Bibtex); also Maruku uses the brackets for uses; plus, I
don''t need tags.
2) Is it possible to change the magic characters "{" and "}"? Ok, not
really a question -- the answer is no, I looked at the source code.
If it was possible to
2007 Aug 08
2
Backtick Hickup
I'm using Michel Fortin's MDTest cases to rewrite my html2text.php script.
Just now I stumbled upon this bug (in PHP Markdown at least):
# Input:
Backtick: ``\```
# Output:
<p>Backtick: `````</p>
# Should-Be Output:
<p>Backtick: <code>`</code></p>
If you (Michel) are already aware of this, just ignore me ;-)
--
Milian Wolff
2007 Jun 14
6
Revisiting mime-types and file extensions
Hi,
I'm in the process of adding support for Markdown to a minimal CMS in
Rails, [Railfrog][railfrog], which uses mime types to select appropriate
processing. I have had a look through the archives but have not been
able to see that a consensus has emerged as to what such a mime type for
Markdown should look like. My reading of the RFCs suggests that it
should be within the "text/*"
2007 Mar 30
4
Current status of webgen 0.4.3 and 0.5.0 (new plugin system)
Hi everybody!
As the easter holidays have now finally arrived and all the exams are
over, I will have more time for webgen again!
Summary
=======
* Changes included in the upcoming 0.4.3 release
* webgen repository
* Status on 0.5.0
* Detailed information on the new 0.5.0 plugin system
Changes for 0.4.3
-----------------
I have collected all mails/forum entries/ML postings in which bugs
2006 Dec 30
4
best way to use emphasis within code?
I want to use fixed font like a code block but also use italics and bold
at same time.
For example in HTML:
<tt>$ <b>mail -u <i>user</i></b></tt>
What is the best way to do this in markdown, especially if I have several
lines of content that needs to be spaced out correctly?
Thanks
Jeremy C. Reed
2006 Sep 16
5
PHP Markdown 1.0.2b7
This is a new release for PHP Markdown, following Markdown.pl 1.0.2b7
from a few weeks ago. It fix the same bugs, and some more; it also
introduce more radical backend changes. It can be downloaded here:
<http://www.michelf.com/docs/projets/php-markdown-1.0.2b7.zip>
and you can test it on the PHP Markdown Dingus:
<http://www.michelf.com/projects/php-markdown/dingus/>
This
2006 Jul 29
4
Formal Grammar — some thoughts
I recently subscribed and saw in the archive that Eric Astor was
asking for a formal grammar (unlikely the first time for such request.)
Currently there are a few problems in making such a thing so I was
curious if Mr. Gruber has made any thoughts about moving toward one?
This would also allow a more ?clean? parser which would get rid of
some of the current problems (bad nesting[^1],
2007 Aug 27
2
Benchmarks with TextMate's manual
The following benchmarks have been obtained using the TextMate manual
as the input source:
<http://macromates.com/textmate/manual/source.tbz>
Using PHP Markdown, parsing the 24 files separately (with the
reference file appended to each of them), I get this (on an iBook G4
1.2 Ghz):
Total Avg. Min. Q1. Med. Q3. Max.
Parse Time (ms):
2007 Aug 24
1
How to download any file using send_file() method
HI,
I am directory listing and in that listing I have certain files and sub
directories, now when I click on the files it should download that
particular file but I am not able to accomplish it, and I have got to
use send_file() method.
In the send file Code shown below I have made use of the address of one
of the files directly so when I click the link of any file it downloads
it.
THE CODE