Skip to content

Commit

Permalink
Improve meta rendering in markdown
Browse files Browse the repository at this point in the history
Fixes #269
  • Loading branch information
lukaszsamson committed Oct 3, 2023
1 parent d2e39a5 commit 1c52dcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir_sense/core/introspection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ defmodule ElixirSense.Core.Introspection do
|> Enum.sort()
|> Enum.map(&get_metadata_entry_md/1)
|> Enum.reject(&is_nil/1)
|> Enum.join("\n")
|> Enum.join("\n\n")

case text do
"" -> ""
Expand Down
4 changes: 4 additions & 0 deletions test/elixir_sense/docs_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ defmodule ElixirSense.DocsTest do
**Implementing behaviour**
ElixirSenseExample.BehaviourWithMeta
**Since**
1.2.3
Expand Down Expand Up @@ -441,6 +442,7 @@ defmodule ElixirSense.DocsTest do
**Implementing behaviour**
:gen_statem
**Since**
OTP 19.0
Expand Down Expand Up @@ -486,6 +488,7 @@ defmodule ElixirSense.DocsTest do
**Implementing behaviour**
ElixirSenseExample.BehaviourWithMeta
**Since**
1.2.3
Expand Down Expand Up @@ -1680,6 +1683,7 @@ defmodule ElixirSense.DocsTest do
**Implementing behaviour**
:gen_statem
**Since**
OTP 19.0
Expand Down

0 comments on commit 1c52dcb

Please sign in to comment.