Skip to content

Commit 3cc3394

Browse files
ravirileymmistakes
authored andcommitted
Allow Markdown in author bio (mmistakes#2215)
* enable markdown in author bio added the markdownify liquid filter * Add markdown to bio in _config.yml * add markdown to bio in /test/ _config.yml * Change <p> to <div>
1 parent 64b3352 commit 3cc3394

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ analytics:
109109
author:
110110
name : "Your Name"
111111
avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg"
112-
bio : "I am an amazing person."
112+
bio : "I am an **amazing** person."
113113
location : "Somewhere"
114114
email :
115115
links:

_includes/author-profile.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
3434
{% endif %}
3535
{% if author.bio %}
36-
<p class="author__bio" itemprop="description">
37-
{{ author.bio }}
38-
</p>
36+
<div class="author__bio" itemprop="description">
37+
{{ author.bio | markdownify }}
38+
</div>
3939
{% endif %}
4040
</div>
4141

test/_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ analytics:
9696
author:
9797
name : "Your Name"
9898
avatar : "/assets/images/bio-photo.jpg"
99-
bio : "I am an amazing person."
99+
bio : "I am an **amazing** person."
100100
location : "Somewhere"
101101
links:
102102
- label: "Your Website"

0 commit comments

Comments
 (0)