Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Extended code blocks should only contain single code tag #116

Closed
gocom opened this issue Oct 25, 2013 · 0 comments
Closed

Extended code blocks should only contain single code tag #116

gocom opened this issue Oct 25, 2013 · 0 comments

Comments

@gocom
Copy link
Member

gocom commented Oct 25, 2013

Currently Textile's long code block generation is a bit semantically flawed. When the block isn't extended, it will contain single code element, but in extended mode, the code blocks act like paragraphs, when they shouldn't.

The following:

bc.. Hello

World!

Generates:

<pre><code>Hello</code>

<code>World!</code></pre>

While it really should be generating:

<pre><code>Hello

World!</code></pre>

The two-level wrappers Textile uses in block/fBlock, only are applicable to blockquotes. For code blocks both elements should be specified in the outer, rather than line.

@ghost ghost assigned gocom Oct 25, 2013
@gocom gocom closed this as completed in 835ebb3 Oct 25, 2013
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant