Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Code block in a list item produces wrong html #9

Open
escalate opened this issue Apr 6, 2012 · 2 comments
Open

Code block in a list item produces wrong html #9

escalate opened this issue Apr 6, 2012 · 2 comments

Comments

@escalate
Copy link

escalate commented Apr 6, 2012

I want to add a code block in a list item.

I'm using DokuWiki (2012-01-25 Angua) and the latest creole plugin.
I read the FAQ about lists with multiple lines. http://www.dokuwiki.org/faq%3Alists

So I used the same style as discribed in the FAQ. The only different is the tag.
With creole {{{ code }}} syntax the html code is wrong.
Wrong html code: <code> code </code>

With DokuWiki <code> code </code> syntax the html code is correct
Correct html code: <pre class="code"> code </pre>

It seems like that the generated <code> code </code> code would not be parsed from DokuWiki.

Sample for code block in a list item:

* Text 1
** Text 2
*** Text 3
*** Text 4 {{{
Code 1
Code 2
}}}
*** Text 5
** Text 6 {{{
Code 3
Code 4
}}}
@escalate
Copy link
Author

escalate commented Apr 6, 2012

I fixed it for myself.
The problem is in the file syntax/preinline.php.
I replaced the handle function with the handle function of the file syntax/preblock.php.
And everything is fine.

@escalate
Copy link
Author

escalate commented Apr 6, 2012

The issue isn't closed because the use of the <code> </code tag isn't correct.
The Creole specification doesn't define this tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant