Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Text-MultiMarkdown CPAN distribution.

Report information
The Basics
Id: 32849
Status: resolved
Priority: 0/
Queue: Text-MultiMarkdown

People
Owner: bobtfish [...] bobtfish.net
Requestors: bobtfish [...] bobtfish.net
Cc: mramberg [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.0.11
Fixed in: (no value)



Subject: Indenting SQL code does not produce code blocks as expected.
<marcus> t0m: http://catwiki.toeat.com/gettingstarted/tutorialsandhowtos/interim_authorization_and_authentication_example <marcus> SQL examples there <marcus> if you indent them, they don't become code blocks
I don't think that this is a bug in MultiMarkdown.. If I add the page to a test in my test suite, I get the following markup out: <p>First, if you follow the Authentication tutorial's example, you have a database like the following.</p> <pre><code> CREATE TABLE users (id INTEGER PRIMARY KEY, username TEXT, password TEXT, email_address TEXT, first_name TEXT, last_name TEXT, active INTEGER); CREATE TABLE roles (id INTEGER PRIMARY KEY, role TEXT); CREATE TABLE user_roles (user_id INTEGER, role_id INTEGER, PRIMARY KEY (user_id, role_id)); </code></pre> <p>You do not need to alter anything in your database.</p> However, when I look at the version produced by the site: <p>First, if you follow the Authentication tutorial's example, you have a database like the following.</p> <code> CREATE TABLE users (id INTEGER PRIMARY KEY, username TEXT, password TEXT, email_address TEXT, first_name TEXT, last_name TEXT, active INTEGER); CREATE TABLE roles (id INTEGER PRIMARY KEY, role TEXT); CREATE TABLE user_roles (user_id INTEGER, role_id INTEGER, PRIMARY KEY (user_id, role_id)); </code></pre> I guess that the missing <pre> tag is being taken out somewhere in-between, and that's what is causing your issue... I'm gonna close this, feel free to re-open if you can give me a string that doesn't work when fed to (just) Text::MultiMarkdown... P.S. I'm constructing the markdown object with: my $m = Text::MultiMarkdown->new( heading_ids => 0, markdown_in_html_blocks => 1, ); for this example..