diff --git a/test/test_tag.py b/test/test_tag.py
index 967e8f3..40352cf 100644
--- a/test/test_tag.py
+++ b/test/test_tag.py
@@ -1,6 +1,8 @@
import mistletoe
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
+from renderer.fifty_ohm_latex_renderer import FiftyOhmLaTeXRenderer
+
def test_thematic_break_html() :
assertions = {
@@ -38,4 +40,45 @@ def test_thematic_break_and_tag_html() :
}
for assertion in assertions:
- assert mistletoe.markdown(assertion, FiftyOhmHtmlRenderer) == assertions[assertion]
\ No newline at end of file
+ assert mistletoe.markdown(assertion, FiftyOhmHtmlRenderer) == assertions[assertion]
+
+def test_thematic_break_latex() :
+ assertions = {
+ "---" : '',
+ "---\n---" : '',
+ }
+
+ for assertion in assertions:
+ assert mistletoe.markdown(assertion, FiftyOhmLaTeXRenderer) == assertions[assertion]
+
+def test_tag_latex() :
+
+ assertions = {
+ "\nFoo\n" : "\Margin{\nFoo\n}",
+ "\nFoo\n" : "\MarginDanger{\nFoo\n}",
+ "\nFoo\n" : "\MarginWarning{\nFoo\n}",
+ "\nFoo\n" : "\MarginAttention{\nFoo\n}",
+ "\nFoo\n" : "\MarginTip{\nFoo\n}",
+ "\nFoo\n" : "\WebTip{\nFoo\n}",
+ "\nFoo\n" : "\MarginUnit{\nFoo\n}",
+ "\nFoo\n" : "\MarginInDepth{\nFoo\n}",
+ "\nFoo\n" : "\MarginWebInDepth{\nFoo\n}",
+ "\nFoo\n" : "\WebMargin{\nFoo\n}",
+ "\nFoo\n" : "\FullWidth{\nFoo\n}",
+ "\nFoo\n" : "\nFoo\n",
+ "\nFoo\n" : "",
+ }
+
+ for assertion in assertions:
+ assert mistletoe.markdown(assertion, FiftyOhmLaTeXRenderer) == assertions[assertion]
+
+def test_thematic_break_and_tag_latex() :
+
+ assertions = {
+ "---\n\nFoo\n" : "\Margin{\nFoo\n}",
+ "---\n\nFoo\n\n\nFoo\n" : "\Margin{\nFoo\n}\Margin{\nFoo\n}",
+ "---\n\nFoo\n\n---\n\nFoo\n" : "\Margin{\nFoo\n}\Margin{\nFoo\n}",
+ }
+
+ for assertion in assertions:
+ assert mistletoe.markdown(assertion, FiftyOhmLaTeXRenderer) == assertions[assertion]
\ No newline at end of file