#----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Imports #----------------------------------------------------------------------------- from ..citation import citation2latex from nose.tools import assert_equal #----------------------------------------------------------------------------- # Tests #----------------------------------------------------------------------------- test_md = {""" # My Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac magna non augue porttitor scelerisque ac id diam Granger. Mauris elit velit, lobortis sed interdum at, vestibulum vitae libero Perez. Lorem ipsum dolor sit amet, consectetur adipiscing elit Thomas. Quisque iaculis ligula ut ipsum mattis viverra.
Here is a plain paragraph that should be unaffected. It contains simple relations like 1<2 & 4>5.
* One Jonathan. * Two Matthias. * Three Paul. """: """ # My Heading Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac magna non augue porttitor scelerisque ac id diam \cite{granger}. Mauris elit velit, lobortis sed interdum at, vestibulum vitae libero \cite{fperez}. Lorem ipsum dolor sit amet, consectetur adipiscing elit \cite{takluyver}. Quisque iaculis ligula ut ipsum mattis viverra.Here is a plain paragraph that should be unaffected. It contains simple relations like 1<2 & 4>5.
* One \cite{jdfreder}. * Two \cite{carreau}. * Three \cite{ivanov}. """, # No citations r"""The quick brown fox jumps over the lazy dog.""": r"""The quick brown fox jumps over the lazy dog.""", # Simple inline r"""Foo Text bar""": r"""Foo \cite{asdf} bar""", # Multiline r"""Text Foo""": r"""\cite{ewqr}Foo""", # Nested tags r"""