-
-
Notifications
You must be signed in to change notification settings - Fork 144
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Given this source:
def f():
"""
Description of `f`.
Example:
>>> f()
Traceback (most recent call last):
...
Exception: something went wrong
"""
raise Exception("something went wrong")
Expected Behavior
A code block covering the whole doctest block and with class "python" so the highlighter doesn't have to guess. It consistently guesses Haskell by the way.
Actual Behavior
A code block with class "python" that actually spans the whole doctest block.
Additional info
Setting the doctest block as fenced code block with an explicit language name solves the highlighting problem, but then the traceback is displayed very weird. That code block then shows up as this in the HTML:
>>> f()
Traceback (most recent call last):
...
**`Exception`**
: something went wrong
- pdoc version: 0.7.4
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working