tedi2md.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Header file of tedi2md
  3. * Copyright (C) <2022> <alkeon> [alkeon@autistici.org]
  4. * Texdi is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * Texdi is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with tedi2md. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef __tedi2md__
  18. #define __tedi2md__
  19. #include <iostream>
  20. #include <string>
  21. #include "../tedi2lang/tedi2lang.h"
  22. using namespace std;
  23. class tedi2md: public tedi2lang{
  24. public:
  25. tedi2md(tags_definition td);
  26. tedi2md();
  27. string convert_line_control_tags(string& line);
  28. tags_definition default_tags_value();
  29. string close_paragraph(bool& is_paragraph);
  30. private:
  31. const string _start_paragraph_tag;
  32. bool _is_paragraph;
  33. };
  34. #endif