rmultimarkdown 6.2.2.1 → 6.4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/ext/Makefile +2 -2
  3. data/ext/mmd/aho-corasick.c +12 -8
  4. data/ext/mmd/beamer.c +29 -0
  5. data/ext/mmd/critic_markup.c +100 -4
  6. data/ext/mmd/critic_markup.h +7 -0
  7. data/ext/mmd/d_string.c +502 -119
  8. data/ext/mmd/epub.c +2 -4
  9. data/ext/mmd/file.c +436 -0
  10. data/ext/mmd/file.h +153 -0
  11. data/ext/mmd/html.c +130 -37
  12. data/ext/mmd/include/d_string.h +20 -19
  13. data/ext/mmd/include/libMultiMarkdown.h +42 -27
  14. data/ext/mmd/include/token.h +15 -15
  15. data/ext/mmd/latex.c +107 -30
  16. data/ext/mmd/lexer.c +19 -7
  17. data/ext/mmd/lexer.h +2 -2
  18. data/ext/mmd/memoir.c +29 -0
  19. data/ext/mmd/mmd.c +65 -39
  20. data/ext/mmd/object_pool.h +4 -4
  21. data/ext/mmd/opendocument-content.c +95 -13
  22. data/ext/mmd/opendocument.c +315 -313
  23. data/ext/mmd/opml-lexer.c +2183 -0
  24. data/ext/mmd/opml-lexer.h +157 -0
  25. data/ext/mmd/opml-parser.c +1193 -0
  26. data/ext/mmd/opml-parser.h +15 -0
  27. data/ext/mmd/opml-reader.c +435 -0
  28. data/ext/mmd/opml-reader.h +111 -0
  29. data/ext/mmd/opml.c +511 -0
  30. data/ext/mmd/opml.h +115 -0
  31. data/ext/mmd/parser.c +2 -0
  32. data/ext/mmd/rng.c +1 -1
  33. data/ext/mmd/scanners.c +51663 -24824
  34. data/ext/mmd/stack.c +4 -2
  35. data/ext/mmd/stack.h +8 -8
  36. data/ext/mmd/textbundle.c +2 -4
  37. data/ext/mmd/token.c +24 -12
  38. data/ext/mmd/token_pairs.c +2 -2
  39. data/ext/mmd/token_pairs.h +10 -10
  40. data/ext/mmd/transclude.c +1 -226
  41. data/ext/mmd/transclude.h +0 -8
  42. data/ext/mmd/uuid.c +3 -3
  43. data/ext/mmd/version.h +3 -3
  44. data/ext/mmd/writer.c +99 -30
  45. data/ext/mmd/writer.h +11 -0
  46. data/lib/multi_markdown.bundle +0 -0
  47. data/lib/multi_markdown/version.rb +1 -1
  48. metadata +13 -5
  49. data/ext/mmd/fodt.c +0 -2288
  50. data/ext/mmd/fodt.h +0 -81
@@ -1,81 +0,0 @@
1
- /**
2
-
3
- MultiMarkdown -- Lightweight markup processor to produce HTML, odf, and more.
4
-
5
- @file fodt.h
6
-
7
- @brief Convert token tree to Flat OpenDocument (ODF/FODT) output
8
-
9
-
10
- @author Fletcher T. Penney
11
- @bug
12
-
13
- **/
14
-
15
- /*
16
-
17
- Copyright © 2016 - 2017 Fletcher T. Penney.
18
-
19
-
20
- The `MultiMarkdown 6` project is released under the MIT License..
21
-
22
- GLibFacade.c and GLibFacade.h are from the MultiMarkdown v4 project:
23
-
24
- https://github.com/fletcher/MultiMarkdown-4/
25
-
26
- MMD 4 is released under both the MIT License and GPL.
27
-
28
-
29
- CuTest is released under the zlib/libpng license. See CuTest.c for the
30
- text of the license.
31
-
32
-
33
- ## The MIT License ##
34
-
35
- Permission is hereby granted, free of charge, to any person obtaining
36
- a copy of this software and associated documentation files (the
37
- "Software"), to deal in the Software without restriction, including
38
- without limitation the rights to use, copy, modify, merge, publish,
39
- distribute, sublicense, and/or sell copies of the Software, and to
40
- permit persons to whom the Software is furnished to do so, subject to
41
- the following conditions:
42
-
43
- The above copyright notice and this permission notice shall be
44
- included in all copies or substantial portions of the Software.
45
-
46
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
47
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
48
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
49
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
50
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
51
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
52
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
53
-
54
-
55
- */
56
-
57
-
58
- #ifndef FODT_MULTIMARKDOWN_H
59
- #define FODT_MULTIMARKDOWN_H
60
-
61
-
62
- #include "d_string.h"
63
- #include "token.h"
64
- #include "writer.h"
65
-
66
- void mmd_export_token_odf(DString * out, const char * source, token * t, scratch_pad * scratch);
67
- void mmd_export_token_tree_odf(DString * out, const char * source, token * t, scratch_pad * scratch);
68
-
69
- void mmd_export_token_odf_raw(DString * out, const char * source, token * t, scratch_pad * scratch);
70
- void mmd_export_token_tree_odf_raw(DString * out, const char * source, token * t, scratch_pad * scratch);
71
-
72
- void mmd_export_citation_list_odf(DString * out, const char * source, scratch_pad * scratch);
73
- void mmd_export_footnote_list_odf(DString * out, const char * source, scratch_pad * scratch);
74
-
75
- void mmd_start_complete_odf(DString * out, const char * source, scratch_pad * scratch);
76
- void mmd_end_complete_odf(DString * out, const char * source, scratch_pad * scratch);
77
-
78
- void mmd_export_citation_list_odf(DString * out, const char * source, scratch_pad * scratch);
79
-
80
-
81
- #endif