Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

Commit 6f6edc2

Browse files
committed
Ignore blockquotes, resolves #4
1 parent 6c2cb43 commit 6f6edc2

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CONFIG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11

22
# recordName
33

4+
> This is the feed's ID which can be letters, numbers, or dashes. Spaces are not allowed. Maximum length is 15 characters.
5+
46
emotional-support-pets
57

68
# displayName
79

10+
> This is the title of the custom feed. Maximum length is 24 characters.
11+
812
Emotional Support Pets
913

1014
# description
1115

16+
> This is the description of the feed.
17+
1218
Cute animals feed
1319

1420
# searchTerms
1521

22+
> Maximum of five search terms. Test these in [https://bsky.app/search](https://bsky.app/search). `AND` is implicit, so `cat dog` on one line will require both `cat` and `dog`. You can use quotes as well `"hot dog"`.
23+
1624
- cats
1725
- dogs
1826
- penguins
@@ -21,4 +29,6 @@ Cute animals feed
2129

2230
# avatar
2331

32+
> This must link to an image (PNG or JPEG) in the same directory as this CONFIG.md. It doesn't have to be called `avatar.png`, but just be sure this CONFIG.md points to the correct file.
33+
2434
![](avatar.png)

render-config.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ def parse_config(markdown_contents):
1515

1616
lines = section.split("\n")
1717
section = lines[0]
18-
lines = [line for line in lines[1:] if line]
18+
19+
# starting with the second line,
20+
# - ignore empty lines
21+
# - ignore blockquotes
22+
lines = [line for line in lines[1:] if line and not line.startswith(">")]
1923

2024
config[section] = lines
2125

0 commit comments

Comments
 (0)