Skip to content
This repository was archived by the owner on Jan 22, 2020. It is now read-only.

Add support for nested <code> tag in <pre> elements #92

Description

@bbannier

The style for .code uses white-space: nowrap; which causes all line breaks in e.g., preformated code blocks to be ignored. It seems almost any other value than nowrap would have made sense. This makes this style unusable for code blocks.

In below example the code block is displayed on a single line.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <link rel="stylesheet" href="dist/canvas.css" type="text/css" />
</head>
<body>
<pre><code>#include &lt;cstdio&gt;

int main() {
    printf(&quot;Hello, world!\n&quot;);
}</code></pre>
</body>
</html>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions