diff --git a/lib/nimble_options/docs.ex b/lib/nimble_options/docs.ex index 246c420..7febe50 100644 --- a/lib/nimble_options/docs.ex +++ b/lib/nimble_options/docs.ex @@ -80,7 +80,7 @@ defmodule NimbleOptions.Docs do defp get_deprecated_str(prev_str, schema) do space_concat( prev_str, - schema[:deprecated] && "This option is deprecated. #{String.trim(schema[:deprecated])}" + schema[:deprecated] && "*This option is deprecated. #{String.trim(schema[:deprecated])}*" ) end diff --git a/test/nimble_options/docs_test.exs b/test/nimble_options/docs_test.exs index 1d6f260..6747aae 100644 --- a/test/nimble_options/docs_test.exs +++ b/test/nimble_options/docs_test.exs @@ -243,7 +243,7 @@ defmodule NimbleOptions.DocsTest do ] docs = """ - * `:old` (`t:atom/0`) - This option is deprecated. Use `:new` instead. Old option. + * `:old` (`t:atom/0`) - *This option is deprecated. Use `:new` instead.* Old option. * `:new` (`t:String.t/0`) - New option.