Browse Source

fix(content): Adjust how hashtags are rendered.

jackyalcine 2 months ago
parent
commit
16462e3b02
Signed by: Jacky Alciné <yo@jacky.wtf> GPG Key ID: 537A4F904B15268D
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      lib/content/matchers.ex
  2. 1
    1
      test/unit/content_test.exs

+ 1
- 1
lib/content/matchers.ex View File

@@ -39,7 +39,7 @@ defmodule Koype.Content.Matchers do
39 39
         "#[#{root_name}](#{url}) {: .p-category}"
40 40
 
41 41
       _ ->
42
-        "#**#{root_name}** {: .p-category}"
42
+        "**##{root_name}** {: .p-category}"
43 43
     end
44 44
   end
45 45
 

+ 1
- 1
test/unit/content_test.exs View File

@@ -37,7 +37,7 @@ defmodule Koype.ContentTest do
37 37
       tag_name = Faker.Lorem.word()
38 38
 
39 39
       assert Subject.to(:markdown, "I tagged this ##{tag_name} as a test.") ==
40
-               "I tagged this #**#{tag_name}** {: .p-category} as a test."
40
+               "I tagged this **##{tag_name}** {: .p-category} as a test."
41 41
     end
42 42
 
43 43
     @tag skip: true

Loading…
Cancel
Save