Show More
@@ -1,33 +1,20 b'' | |||
|
1 | 1 | """Utility for calling pandoc""" |
|
2 | #----------------------------------------------------------------------------- | |
|
3 | # Copyright (c) 2014 the IPython Development Team. | |
|
4 | # | |
|
2 | # Copyright (c) IPython Development Team. | |
|
5 | 3 | # Distributed under the terms of the Modified BSD License. |
|
6 | # | |
|
7 | # The full license is in the file COPYING.txt, distributed with this software. | |
|
8 | #----------------------------------------------------------------------------- | |
|
9 | 4 | |
|
10 | #----------------------------------------------------------------------------- | |
|
11 | # Imports | |
|
12 | #----------------------------------------------------------------------------- | |
|
13 | from __future__ import print_function | |
|
5 | from __future__ import print_function, absolute_import | |
|
14 | 6 | |
|
15 | # Stdlib imports | |
|
16 | 7 | import subprocess |
|
17 | 8 | import warnings |
|
18 | 9 | import re |
|
19 | 10 | from io import TextIOWrapper, BytesIO |
|
20 | 11 | |
|
21 | # IPython imports | |
|
22 | 12 | from IPython.utils.py3compat import cast_bytes |
|
23 | 13 | from IPython.utils.version import check_version |
|
24 | 14 | from IPython.utils.process import is_cmd_found, FindCmdError |
|
25 | 15 | |
|
26 | 16 | from .exceptions import ConversionException |
|
27 | 17 | |
|
28 | #----------------------------------------------------------------------------- | |
|
29 | # Classes and functions | |
|
30 | #----------------------------------------------------------------------------- | |
|
31 | 18 | _minimal_version = "1.12.1" |
|
32 | 19 | |
|
33 | 20 | def pandoc(source, fmt, to, extra_args=None, encoding='utf-8'): |
General Comments 0
You need to be logged in to leave comments.
Login now