`<pre>` without `<code>`?

Jelks Cabaniss jelks at jelks.nu
Sun Mar 13 21:28:36 EST 2005


Any way to get preformatted text *not* wrapped in `<code>` blocks?

The current behavior is fine when the material *is* code, but a lot of times
it isn't.  I'm wondering if it shoudn't have been where something like ...

	Roses are red,
	  Violets are blue,
	I'm schizophrenic
	  And so am I.

... becomes just:

	<pre>
		Roses are red,
		  Violets are blue,
		I'm schizophrenic
		  And so am I.
	</pre>

... whereas something like ...

	`
	void main() {
		printf("Hello world.\n");
	}
	`

produced Markdown's current behavior without those backticks.

The first example above is of course silly, but for non-silly examples see
some of the RFCs that have been HTMLized -- the RFC itself is wrapped in
`<pre>`, but not `<code>`, which is appropriate because it's *not* code.

/Jelks




More information about the Markdown-Discuss mailing list