Skip to content

Commit 9debd26

Browse files
committed
Fixes #2
1 parent c7e009f commit 9debd26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandoc_codeblock_include.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ def include(elem, doc):
3636
text = file_content[start_from:end_at]
3737
elem.text = ''.join(text)
3838

39+
if doc.format in ['latex', 'beamer']:
40+
# Clear the attributes else latex will get a problem with the listings
41+
del elem.attributes['include']
42+
del elem.attributes['endAt']
43+
3944
def main(doc = None):
4045
return run_filter(include, doc = doc)
4146

0 commit comments

Comments
 (0)