Skip to content

Commit

Permalink
Merge pull request #26 from DamienCassou/verbatim-support
Browse files Browse the repository at this point in the history
Add support for verbatim
  • Loading branch information
DamienCassou committed Mar 19, 2024
2 parents 2331920 + dd847fc commit eab4732
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ox-linuxmag-fr.el
Expand Up @@ -58,6 +58,7 @@
`((template . ox-linuxmag-fr--template)
(bold . ox-linuxmag-fr--bold)
(code . ox-linuxmag-fr--code)
(verbatim . ox-linuxmag-fr--code)
(headline . ox-linuxmag-fr--headline)
(italic . ox-linuxmag-fr--italic)
(item . ox-linuxmag-fr--format-contents)
Expand Down
4 changes: 4 additions & 0 deletions test/ox-linuxmag-fr-tests.el
Expand Up @@ -112,6 +112,10 @@ hashtables. OX-LINUXMAG-FR-BASENAME is a string."
(ox-linuxmag-fr-tests-export "Test ~foo~")
(should (ox-linuxmag-fr-tests-contain "Test <text:span text:style-name=\"code_5f_par\">foo</text:span>")))

(ert-deftest ox-linuxmag-fr-tests-verbatim ()
(ox-linuxmag-fr-tests-export "Test =foo=")
(should (ox-linuxmag-fr-tests-contain "Test <text:span text:style-name=\"code_5f_par\">foo</text:span>")))

(ert-deftest ox-linuxmag-fr-tests-headline-numbered ()
(ox-linuxmag-fr-tests-export "* Titre 1\n** Titre 1.1")
(should (ox-linuxmag-fr-tests-contain "<text:h text:style-name=\"Heading_20_1\">1. Titre 1</text:h>"))
Expand Down

0 comments on commit eab4732

Please sign in to comment.