Hi list -
"xhtml2article" (in the Markdown bundle) has definitions to transform xhtml meta-tags/info into LaTeX definitions/tags. Can I define this meta-information, such as the author, in the Markdown file? If not, how do I get this meta-info into LaTeX?
Thanks for any hint.
With regards - Stefan
On 03.05.2006, at 22:24, Stefan Brantschen wrote:
Hi list -
"xhtml2article" (in the Markdown bundle) has definitions to transform xhtml meta-tags/info into LaTeX definitions/tags. Can I define this meta-information, such as the author, in the Markdown file? If not, how do I get this meta-info into LaTeX?
As indicated by the two ‘↓↓’ (we found that pretty clever) that command is used for [MultiMarkdown][1], which is a Markdown extension and it provides meta information. A document containing the Format meta tag at the beginning is automatically detected as MultiMarkdown btw.
Soryu.
[1]: fletcher.freeshell.org/wiki/MultiMarkdown
On May 3, 2006, at 4:28 PM, Soryu wrote:
On 03.05.2006, at 22:24, Stefan Brantschen wrote:
Hi list -
"xhtml2article" (in the Markdown bundle) has definitions to transform xhtml meta-tags/info into LaTeX definitions/tags. Can I define this meta-information, such as the author, in the Markdown file? If not, how do I get this meta-info into LaTeX?
As indicated by the two ‘↓↓’ (we found that pretty clever) that command is used for [MultiMarkdown][1], which is a Markdown extension and it provides meta information. A document containing the Format meta tag at the beginning is automatically detected as MultiMarkdown btw.
May I suggest a command that takes the user to the MultiMarkdown home page? And definitely some help? Currently there is almost no indication of what the arrows are for. I like them, but even if someone knows about multimarkdown, it's still not clear that that is what they are for.
Soryu.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Haris
May I suggest a command that takes the user to the MultiMarkdown home page? And definitely some help? Currently there is almost no indication of what the arrows are for. I like them, but even if someone knows about multimarkdown, it's still not clear that that is what they are for.
Hey Haris,
I actually had included a stub for a Help command with the modifications I had made wrt. to MultiMarkdown. Someone must have forgotten to complete and commit it ;)
Soryu.
Format: complete Title: Markdown Help
# Markdown Help
## Commands
* “↓↓ Convert Document/Selection to HTML”
* “↓↓ Convert Document/Selection to LaTeX” The LaTeX Output uses the Packages “plainfootnote” and “xmpincl”. * “↓↓ Convert Document/Selection to Markdown” * “↓↓ Convert Document/Selection to PDF” * “↓↓ Convert Document/Selection to RTF” * “↓↓ Generate Output and open in Browser”
Thanks for your help. Another question: what is the reason that meta data keys cannot contain underscores "_" (or dashes "-"), but blanks? Hence
table_of_contents: yes => invalid table-of-contents: yes => invalid table of contents: yes => valid
I realize that the MultiMarkdown script is coded this way (_ParseMetaData) -- my question is if there's a specific reason to do this (eg. related to XML, even though, AFAIK, at least dashes are valid in XML)?
Thanks and regards - Stefan
On 3 May 2006, at 23:28, Soryu wrote:
On 03.05.2006, at 22:24, Stefan Brantschen wrote:
Hi list -
"xhtml2article" (in the Markdown bundle) has definitions to transform xhtml meta-tags/info into LaTeX definitions/tags. Can I define this meta-information, such as the author, in the Markdown file? If not, how do I get this meta-info into LaTeX?
As indicated by the two ‘↓↓’ (we found that pretty clever) that command is used for [MultiMarkdown][1], which is a Markdown extension and it provides meta information. A document containing the Format meta tag at the beginning is automatically detected as MultiMarkdown btw.
Soryu.
On May 4, 2006, at 3:29 AM, Stefan Brantschen wrote:
Thanks for your help. Another question: what is the reason that meta data keys cannot contain underscores "_" (or dashes "-"), but blanks? Hence
table_of_contents: yes => invalid table-of-contents: yes => invalid table of contents: yes => valid
I realize that the MultiMarkdown script is coded this way (_ParseMetaData) -- my question is if there's a specific reason to do this (eg. related to XML, even though, AFAIK, at least dashes are valid in XML)?
You should ask Fletcher Penney; my experience is that he would be happy to explain his reasoning. My two cents: the spaces are correct because Markdown is supposed to look like the natural typing of a human being. On the Markdown mailing list, many electrons are burned discussing matters like this.
-- Dr. Drang
On 4 May 2006, at 15:29, Dr. Drang wrote:
You should ask Fletcher Penney; my experience is that he would be happy to explain his reasoning.
And here what Fletcher said:
Question:
## What is the reason that meta data keys cannot contain underscores "_" (or dashes "-"), but blanks?
Hence
table_of_contents: yes => invalid table-of-contents: yes => invalid table of contents: yes => valid
I realize that the MultiMarkdown script is coded this way (_ParseMetaData) -- my question is if there's a specific reason to do this (eg. related to XML, even though, AFAIK, at least dashes are valid in XML)?
Would you consider making these special characters valid as well?
Fletcher's answer:
It was not done for any particular reason - they will be added in next release, but for now, just swap out the code below in _ParseMetaData:
if ($inMetaData) { if ($line =~ /^([a-zA-Z0-9][0-9a-zA-Z _-]+?):\s*(.*)$/ ) {
Then, I also asked:
## Currently, definition lists are not supported, ie. the XHTML
<dl> <dt>Term 1</dt> <dd>Definition 1</dd> <dt>Term 2</dt> <dd>Definition 2</dd> </dl>
thing. Would you ever consider to add this to MultiMarkdown? In "stx2any" it's defined like this:
term 1:: definition1
term 2:: definition 2
to get the above XHTML-like result, which is quite useful.
Fletcher's answer:
This is something that I will wait on the "real" Markdown to support before I add it to MultiMarkdown. I don't have a lot of need for it, and there hasn't seemed to be real agreement on a syntax from the mailing list in the past.
With regards - Stefan
MultiMarkdown allows you to put meta-tags at the beginning of your file: The three that I typically use are:
Format: complete Title: my title Author: My Name
Brad
On May 3, 2006, at 3:24 PM, Stefan Brantschen wrote:
Hi list -
"xhtml2article" (in the Markdown bundle) has definitions to transform xhtml meta-tags/info into LaTeX definitions/tags. Can I define this meta-information, such as the author, in the Markdown file? If not, how do I get this meta-info into LaTeX?
Thanks for any hint.
With regards
- Stefan
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate