Skip to content

Commit 740fd39

Browse files
Remove unnecessary notes
1 parent 683ca4b commit 740fd39

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

n2y/plugins/jinjarenderpage.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@
4343
from n2y.utils import available_from_list, pandoc_ast_to_markdown
4444

4545

46-
# Custom Jinja Tests
4746
def regex_search(value, pattern):
4847
return bool(re.search(pattern, value))
4948

5049

51-
# Custom Jinja Filters
5250
def _canonicalize(markdown):
5351
markdown = markdown.replace("\u201d", '"').replace("\u201c", '"')
5452
markdown = markdown.replace("\u2019", "'").replace("\u2018", "'")
@@ -126,7 +124,6 @@ def join_to(foreign_keys, table, primary_key="notion_id"):
126124
return joined
127125

128126

129-
# Jinja Environment Management
130127
def _create_jinja_environment():
131128
environment = jinja2.Environment(
132129
cache_size=0,
@@ -140,7 +137,6 @@ def _create_jinja_environment():
140137
return environment
141138

142139

143-
# Jinja Rendering
144140
def render_from_string(source, context=None, environment=None):
145141
if environment is None:
146142
environment: jinja2.Environment = _create_jinja_environment()
@@ -155,7 +151,6 @@ def render_from_string(source, context=None, environment=None):
155151
return output
156152

157153

158-
# Util Classes
159154
class JinjaExceptionInfo:
160155
err: Exception
161156
obj: object
@@ -255,7 +250,6 @@ def source(self):
255250
return self._source
256251

257252

258-
# Plugin Classes
259253
class JinjaRenderPage(Page):
260254
def __init__(self, client, notion_data):
261255
super().__init__(client, notion_data)

0 commit comments

Comments
 (0)