Skip to content

Commit

Permalink
Merge pull request #74 from innolitics/lost-main
Browse files Browse the repository at this point in the history
Add back lost commits to main
  • Loading branch information
bimbashrestha committed Sep 16, 2022
2 parents 793fd74 + b8020a0 commit 14142b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The default implementation of these classes can be modified using a plugin syste
2. Subclass the various notion classes, modifying their constructor or `to_pandoc` method as desired
3. Run n2y with the `--plugin` argument pointing to your python module

See the [builtin plugins](https://github.com/innolitics/n2y/tree/rich-text-extensions/n2y/plugins) for examples.
See the [builtin plugins](https://github.com/innolitics/n2y/tree/main/n2y/plugins) for examples.

### Using Multiple Plugins

Expand Down
2 changes: 1 addition & 1 deletion n2y/mentions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, client, notion_data, plain_text, block=None):
self.user = client.wrap_notion_user(notion_data["user"])

def to_pandoc(self):
return [Str(self.user.name)]
return [Str(self.user.name)] if self.user.name else []


class PageMention(Mention):
Expand Down

0 comments on commit 14142b2

Please sign in to comment.