Skip to content

Code blocks in docstrings are wrapped in <p> #199

@NoahTheDuke

Description

@NoahTheDuke

hey friends, i have a markdown code block in a docstring that isn't treated as code, and i'd love to have it properly rendered.

Given:

(defmacro try+
  "Works the same as try except catch clauses can be slightly fancier:
  Examples:

  ```clojure
  (try (throw (ex-info \"example\" {::sinker/type :hello :data :caught}))
    (catch :hello exd
      (:data exd)))
  => :caught
  ```
  "
  [& body]
  (when (seq body)
    ...))

Result:

Image

i'm willing to work on this if such a feature is acceptable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions