From t_leitner at gmx.at Wed Jun 1 05:07:02 2011 From: t_leitner at gmx.at (Thomas Leitner) Date: Wed, 1 Jun 2011 11:07:02 +0200 Subject: [kramdown-users] Attribute list definitions for code blocks In-Reply-To: <1306886723-sup-1321@samurai.icir.org> References: <1306886723-sup-1321@samurai.icir.org> Message-ID: <20110601110702.18f9ddd7@noeato> On 2011-05-31 17:10 -0700 Matthias Vallentin wrote: > How can I push the class attribute into the code tag, rather than > applying to the outside pre tag? That is, I would like to generate the > following: > >

>     some code
>     
> > Any ideas on how to achieve this? This is only possible by subclassing the HTML converter (at lib/kramdown/converter/html.rb) and overriding the #convert_codeblock method. -- Thomas From vallentin at icir.org Fri Jun 10 14:25:04 2011 From: vallentin at icir.org (Matthias Vallentin) Date: Fri, 10 Jun 2011 11:25:04 -0700 Subject: [kramdown-users] Lists and math Message-ID: <1307729974-sup-3478@samurai.icir.org> This following piece of kramdown code - Vector $$V$$ of $$m$$ cells, i.e., $$m = |V|$$ is compiled into a table due to the pipe symbols:
  • Vector of cells, i.e., $$m = V $$
  • While I do want the
  • wrapping, the table generation appears to be bug. I am using kramdown 0.13.3. Matthias From vallentin at icir.org Fri Jun 10 16:47:15 2011 From: vallentin at icir.org (Matthias Vallentin) Date: Fri, 10 Jun 2011 13:47:15 -0700 Subject: [kramdown-users] Escaping in math Message-ID: <1307738438-sup-9553@samurai.icir.org> Consider this code snippet: \$$S = \{x_1,\dots,x_n\}$$ where $$x_i\in U$$ and $$|S| = n$$ It will only compile correctly if I escape the backslash of the curly braces inside the first math block; like this: \$$S = \\{x_1,\dots,x_n\\}$$ where $$x_i\in U$$ and $$|S| = n$$ That is, it is necessary to change \{ to \\{. Is this intended behavior? Intuitively, I assumed that everything inside the two dollar signs should be compilable TeX. Or do I need to consider some extra escaping rules? Matthias From vallentin at icir.org Fri Jun 10 17:02:53 2011 From: vallentin at icir.org (Matthias Vallentin) Date: Fri, 10 Jun 2011 14:02:53 -0700 Subject: [kramdown-users] Escaping in math In-Reply-To: <1307738438-sup-9553@samurai.icir.org> References: <1307738438-sup-9553@samurai.icir.org> Message-ID: <1307739420-sup-3522@samurai.icir.org> > That is, it is necessary to change \{ to \\{. Is this intended behavior? Please discard my mail regarding this concern. I figured out that the issue I am having is an artifact of the earlier problem with respect to the table generation. Removing the pipes around |S| in > \$$S = \{x_1,\dots,x_n\}$$ where $$x_i\in U$$ and $$|S| = n$$ solves the escaping problem. Sorry about the noise, Matthias