Permalink
Browse files

[DEV] Replace discount Markdown-to-html engine with mayday.

  • Loading branch information...
1 parent 3e1972e commit 28cca588a441b5361a8f8971ed8b1f6aa0052c1b @rentzsch committed Sep 15, 2009
Showing with 15 additions and 13,296 deletions.
  1. +3 −0 .gitmodules
  2. +2 −2 MarkdownLive-Info.plist
  3. +6 −60 MarkdownLive.xcodeproj/project.pbxproj
  4. +3 −23 MyDocument.m
  5. +0 −47 discount-1.5.4/COPYRIGHT
  6. +0 −33 discount-1.5.4/CREDITS
  7. +0 −61 discount-1.5.4/Csio.c
  8. +0 −41 discount-1.5.4/INSTALL
  9. +0 −96 discount-1.5.4/Makefile
  10. +0 −96 discount-1.5.4/Makefile.in
  11. +0 −40 discount-1.5.4/Plan9/README
  12. +0 −169 discount-1.5.4/Plan9/markdown.1
  13. +0 −332 discount-1.5.4/Plan9/markdown.2
  14. +0 −543 discount-1.5.4/Plan9/markdown.6
  15. +0 −37 discount-1.5.4/Plan9/mkfile
  16. +0 −16 discount-1.5.4/README
  17. +0 −1 discount-1.5.4/VERSION
  18. +0 −111 discount-1.5.4/amalloc.c
  19. +0 −29 discount-1.5.4/amalloc.h
  20. +0 −2 discount-1.5.4/config.cmd
  21. +0 −25 discount-1.5.4/config.h
  22. +0 −35 discount-1.5.4/config.log
  23. +0 −1 discount-1.5.4/config.mak
  24. +0 −5 discount-1.5.4/config.md
  25. +0 −27 discount-1.5.4/config.sub
  26. +0 −1,459 discount-1.5.4/configure.inc
  27. +0 −144 discount-1.5.4/configure.sh
  28. +0 −76 discount-1.5.4/css.c
  29. +0 −75 discount-1.5.4/cstring.h
  30. +0 −43 discount-1.5.4/docheader.c
  31. +0 −151 discount-1.5.4/dumptree.c
  32. +0 −1,594 discount-1.5.4/generate.c
  33. +0 −197 discount-1.5.4/main.c
  34. +0 −27 discount-1.5.4/makepage.c
  35. +0 −128 discount-1.5.4/markdown.1
  36. +0 −128 discount-1.5.4/markdown.1.in
  37. +0 −123 discount-1.5.4/markdown.3
  38. +0 −1,019 discount-1.5.4/markdown.7
  39. +0 −1,069 discount-1.5.4/markdown.c
  40. +0 −146 discount-1.5.4/markdown.h
  41. +0 −178 discount-1.5.4/mkd-extensions.7
  42. +0 −180 discount-1.5.4/mkd-functions.3
  43. +0 −41 discount-1.5.4/mkd-line.3
  44. +0 −185 discount-1.5.4/mkd2html.c
  45. +0 −303 discount-1.5.4/mkdio.c
  46. +0 −79 discount-1.5.4/mkdio.h
  47. +0 −155 discount-1.5.4/resource.c
  48. +0 −42 discount-1.5.4/tests/autolink.t
  49. +0 −53 discount-1.5.4/tests/automatic.t
  50. +0 −35 discount-1.5.4/tests/backslash.t
  51. +0 −13 discount-1.5.4/tests/chrome.text
  52. +0 −39 discount-1.5.4/tests/code.t
  53. +0 −47 discount-1.5.4/tests/compat.t
  54. +0 −48 discount-1.5.4/tests/crash.t
  55. +0 −67 discount-1.5.4/tests/div.t
  56. +0 −69 discount-1.5.4/tests/dl.t
  57. +0 −9 discount-1.5.4/tests/embedlinks.text
  58. +0 −40 discount-1.5.4/tests/emphasis.t
  59. +0 −52 discount-1.5.4/tests/flow.t
  60. +0 −34 discount-1.5.4/tests/footnotes.t
  61. +0 −42 discount-1.5.4/tests/header.t
  62. +0 −109 discount-1.5.4/tests/html.t
  63. +0 −14 discount-1.5.4/tests/links.text
  64. +0 −124 discount-1.5.4/tests/linkylinky.t
  65. +0 −31 discount-1.5.4/tests/linkypix.t
  66. +0 −168 discount-1.5.4/tests/list.t
  67. +0 −57 discount-1.5.4/tests/list3deep.t
  68. +0 −33 discount-1.5.4/tests/misc.t
  69. +0 −74 discount-1.5.4/tests/pandoc.t
  70. +0 −38 discount-1.5.4/tests/para.t
  71. +0 −31 discount-1.5.4/tests/paranoia.t
  72. +0 −64 discount-1.5.4/tests/peculiarities.t
  73. +0 −35 discount-1.5.4/tests/pseudo.t
  74. +0 −34 discount-1.5.4/tests/reparse.t
  75. +0 −97 discount-1.5.4/tests/schiraldi.t
  76. +0 −50 discount-1.5.4/tests/smarty.t
  77. +0 −34 discount-1.5.4/tests/snakepit.t
  78. +0 −32 discount-1.5.4/tests/style.t
  79. +0 −897 discount-1.5.4/tests/syntax.text
  80. +0 −164 discount-1.5.4/tests/tables.t
  81. +0 −66 discount-1.5.4/tests/tabstop.t
  82. +0 −41 discount-1.5.4/tests/toc.t
  83. +0 −39 discount-1.5.4/tests/xml.t
  84. +0 −142 discount-1.5.4/theme.1
  85. +0 −593 discount-1.5.4/theme.c
  86. +0 −90 discount-1.5.4/toc.c
  87. +0 −38 discount-1.5.4/tools/cols.c
  88. +0 −22 discount-1.5.4/tools/echo.c
  89. +0 −28 discount-1.5.4/version.c
  90. +0 −28 discount-1.5.4/version.c.in
  91. +0 −82 discount-1.5.4/xml.c
  92. +0 −48 discount-1.5.4/xmlpage.c
  93. +0 −3 discount_wrappers/discountWrapper.h
  94. +0 −29 discount_wrappers/discountWrapper.m
  95. +0 −13 discount_wrappers/markdownWrapper.c
  96. +0 −7 discount_wrappers/markdownWrapper.h
  97. +0 −12 discount_wrappers/mkdioWrapper.c
  98. +0 −7 discount_wrappers/mkdioWrapper.h
  99. +1 −0 mayday
View
@@ -0,0 +1,3 @@
+[submodule "mayday"]
+ path = mayday
+ url = git://github.com/jemmons/mayday.git
View
@@ -40,9 +40,9 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1.5.1</string>
+ <string>1.6</string>
<key>CFBundleShortVersionString</key>
- <string>1.5.1</string>
+ <string>1.6</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSMainNibFile</key>
@@ -9,17 +9,9 @@
/* Begin PBXBuildFile section */
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58280DA1D0D100B32029 /* MyDocument.xib */; };
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
- 795F6C4F105D6EC400D1F90A /* mkdio.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C4E105D6EC400D1F90A /* mkdio.c */; };
- 795F6C51105D6ECE00D1F90A /* markdown.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C50105D6ECE00D1F90A /* markdown.c */; };
- 795F6C53105D6ED800D1F90A /* generate.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C52105D6ED800D1F90A /* generate.c */; };
- 795F6C55105D6EE100D1F90A /* resource.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C54105D6EE100D1F90A /* resource.c */; };
- 795F6C62105D6F6E00D1F90A /* xml.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C61105D6F6E00D1F90A /* xml.c */; };
- 795F6C66105D6F8500D1F90A /* Csio.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C65105D6F8500D1F90A /* Csio.c */; };
795F6C87105D70A300D1F90A /* MarkdownLiveApp.icns in Resources */ = {isa = PBXBuildFile; fileRef = 795F6C86105D70A300D1F90A /* MarkdownLiveApp.icns */; };
795F6CCD105D741100D1F90A /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 795F6CCC105D741100D1F90A /* WebKit.framework */; };
- 795F6DBA105D75D300D1F90A /* discountWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB5105D75D300D1F90A /* discountWrapper.m */; };
- 795F6DBB105D75D300D1F90A /* markdownWrapper.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB6105D75D300D1F90A /* markdownWrapper.c */; };
- 795F6DBC105D75D300D1F90A /* mkdioWrapper.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB8105D75D300D1F90A /* mkdioWrapper.c */; };
+ 79B3D5441060376F00A8D174 /* MDMarkdownParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 79B3D5431060376F00A8D174 /* MDMarkdownParser.m */; };
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */; };
8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165FFE840EACC02AAC07 /* InfoPlist.strings */; };
8D15AC310486D014006FF6A4 /* MyDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A37F4ACFDCFA73011CA2CEA /* MyDocument.m */; settings = {ATTRIBUTES = (); }; };
@@ -40,20 +32,10 @@
2A37F4BAFDCFA73011CA2CEA /* English */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = English; path = English.lproj/Credits.rtf; sourceTree = "<group>"; };
2A37F4C4FDCFA73011CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
2A37F4C5FDCFA73011CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
- 795F6C4E105D6EC400D1F90A /* mkdio.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mkdio.c; sourceTree = "<group>"; };
- 795F6C50105D6ECE00D1F90A /* markdown.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = markdown.c; sourceTree = "<group>"; };
- 795F6C52105D6ED800D1F90A /* generate.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = generate.c; sourceTree = "<group>"; };
- 795F6C54105D6EE100D1F90A /* resource.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = resource.c; sourceTree = "<group>"; };
- 795F6C61105D6F6E00D1F90A /* xml.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = xml.c; sourceTree = "<group>"; };
- 795F6C65105D6F8500D1F90A /* Csio.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = Csio.c; sourceTree = "<group>"; };
795F6C86105D70A300D1F90A /* MarkdownLiveApp.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = MarkdownLiveApp.icns; sourceTree = "<group>"; };
795F6CCC105D741100D1F90A /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = /System/Library/Frameworks/WebKit.framework; sourceTree = "<absolute>"; };
- 795F6DB4105D75D300D1F90A /* discountWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = discountWrapper.h; sourceTree = "<group>"; };
- 795F6DB5105D75D300D1F90A /* discountWrapper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = discountWrapper.m; sourceTree = "<group>"; };
- 795F6DB6105D75D300D1F90A /* markdownWrapper.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = markdownWrapper.c; sourceTree = "<group>"; };
- 795F6DB7105D75D300D1F90A /* markdownWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = markdownWrapper.h; sourceTree = "<group>"; };
- 795F6DB8105D75D300D1F90A /* mkdioWrapper.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mkdioWrapper.c; sourceTree = "<group>"; };
- 795F6DB9105D75D300D1F90A /* mkdioWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mkdioWrapper.h; sourceTree = "<group>"; };
+ 79B3D5421060376F00A8D174 /* MDMarkdownParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MDMarkdownParser.h; path = mayday/MDMarkdownParser.h; sourceTree = "<group>"; };
+ 79B3D5431060376F00A8D174 /* MDMarkdownParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MDMarkdownParser.m; path = mayday/MDMarkdownParser.m; sourceTree = "<group>"; };
8D15AC360486D014006FF6A4 /* MarkdownLive-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "MarkdownLive-Info.plist"; sourceTree = "<group>"; };
8D15AC370486D014006FF6A4 /* MarkdownLive.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MarkdownLive.app; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
@@ -102,8 +84,6 @@
isa = PBXGroup;
children = (
2A37F4ABFDCFA73011CA2CEA /* Classes */,
- 795F6C4D105D6EA500D1F90A /* discount-1.5.4 */,
- 795F6DB3105D75D300D1F90A /* discount_wrappers */,
2A37F4AFFDCFA73011CA2CEA /* Other Sources */,
2A37F4B8FDCFA73011CA2CEA /* Resources */,
2A37F4C3FDCFA73011CA2CEA /* Frameworks */,
@@ -117,6 +97,8 @@
children = (
2A37F4AEFDCFA73011CA2CEA /* MyDocument.h */,
2A37F4ACFDCFA73011CA2CEA /* MyDocument.m */,
+ 79B3D5421060376F00A8D174 /* MDMarkdownParser.h */,
+ 79B3D5431060376F00A8D174 /* MDMarkdownParser.m */,
);
name = Classes;
sourceTree = "<group>";
@@ -152,32 +134,6 @@
name = Frameworks;
sourceTree = "<group>";
};
- 795F6C4D105D6EA500D1F90A /* discount-1.5.4 */ = {
- isa = PBXGroup;
- children = (
- 795F6C4E105D6EC400D1F90A /* mkdio.c */,
- 795F6C50105D6ECE00D1F90A /* markdown.c */,
- 795F6C52105D6ED800D1F90A /* generate.c */,
- 795F6C54105D6EE100D1F90A /* resource.c */,
- 795F6C61105D6F6E00D1F90A /* xml.c */,
- 795F6C65105D6F8500D1F90A /* Csio.c */,
- );
- path = "discount-1.5.4";
- sourceTree = "<group>";
- };
- 795F6DB3105D75D300D1F90A /* discount_wrappers */ = {
- isa = PBXGroup;
- children = (
- 795F6DB4105D75D300D1F90A /* discountWrapper.h */,
- 795F6DB5105D75D300D1F90A /* discountWrapper.m */,
- 795F6DB6105D75D300D1F90A /* markdownWrapper.c */,
- 795F6DB7105D75D300D1F90A /* markdownWrapper.h */,
- 795F6DB8105D75D300D1F90A /* mkdioWrapper.c */,
- 795F6DB9105D75D300D1F90A /* mkdioWrapper.h */,
- );
- path = discount_wrappers;
- sourceTree = "<group>";
- };
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -238,15 +194,7 @@
files = (
8D15AC310486D014006FF6A4 /* MyDocument.m in Sources */,
8D15AC320486D014006FF6A4 /* main.m in Sources */,
- 795F6C4F105D6EC400D1F90A /* mkdio.c in Sources */,
- 795F6C51105D6ECE00D1F90A /* markdown.c in Sources */,
- 795F6C53105D6ED800D1F90A /* generate.c in Sources */,
- 795F6C55105D6EE100D1F90A /* resource.c in Sources */,
- 795F6C62105D6F6E00D1F90A /* xml.c in Sources */,
- 795F6C66105D6F8500D1F90A /* Csio.c in Sources */,
- 795F6DBA105D75D300D1F90A /* discountWrapper.m in Sources */,
- 795F6DBB105D75D300D1F90A /* markdownWrapper.c in Sources */,
- 795F6DBC105D75D300D1F90A /* mkdioWrapper.c in Sources */,
+ 79B3D5441060376F00A8D174 /* MDMarkdownParser.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -330,7 +278,6 @@
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
SDKROOT = macosx10.6;
- USER_HEADER_SEARCH_PATHS = "\"$(SRCROOT)/discount-1.5.4\"";
};
name = Debug;
};
@@ -343,7 +290,6 @@
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = macosx10.6;
- USER_HEADER_SEARCH_PATHS = "\"$(SRCROOT)/discount-1.5.4\"";
};
name = Release;
};
View
@@ -1,5 +1,5 @@
#import "MyDocument.h"
-#include "discountWrapper.h"
+#import "MDMarkdownParser.h"
NSString *kMarkdownDocumentType = @"MarkdownDocumentType";
@@ -13,28 +13,8 @@ - (NSString*)markdown2html:(NSString*)markdown_ {
if (!markdown_)
return @"";
-#if 0
- NSString *result = nil;
-
- char *markdownUTF8 = (char*)[markdown_ UTF8String];
- Document *document = mkd_string(markdownUTF8, strlen(markdownUTF8), 0);
- if (document) {
- if (mkd_compile(document, 0)) {
- char *htmlUTF8;
- int htmlUTF8Len = mkd_document(document, &htmlUTF8);
- if (htmlUTF8Len != EOF) {
- result = [[[NSString alloc] initWithBytes:htmlUTF8
- length:htmlUTF8Len
- encoding:NSUTF8StringEncoding] autorelease];
- }
- mkd_cleanup(document);
- }
- }
-
- return result;
-#else
- return discountToHTML(markdown_);
-#endif
+ MDMarkdownParser *parser = [[[MDMarkdownParser alloc] init] autorelease];
+ return [parser cleanWhitespaceOnlyLinesInString:[parser detabString:markdown_]];
}
- (id)init {
View
@@ -1,47 +0,0 @@
-->Copyright (C) 2007 David Loren Parsons.
-All rights reserved.<-
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation files
-(the "Software"), to deal in the Software without restriction,
-including without limitation the rights to use, copy, modify, merge,
-publish, distribute, sublicence, and/or sell copies of the Software,
-and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions, and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above
- copyright notice, this list of conditions and the following
- disclaimer in the documentation and/or other materials provided
- with the distribution, and in the same place and form as other
- copyright, license and disclaimer information.
-
- 3. The end-user documentation included with the redistribution, if
- any, must include the following acknowledgment:
-
- This product includes software developed by
- David Loren Parsons <http://www.pell.portland.or.us/~orc>
-
- in the same place and form as other third-party acknowledgments.
- Alternately, this acknowledgment may appear in the software
- itself, in the same form and location as other such third-party
- acknowledgments.
-
- 4. Except as contained in this notice, the name of David Loren
- Parsons shall not be used in advertising or otherwise to promote
- the sale, use or other dealings in this Software without prior
- written authorization from David Loren Parsons.
-
-THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL DAVID LOREN PARSONS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
-STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
-OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -1,33 +0,0 @@
-Discount is primarily my work, but it has only reached the point
-where it is via contributions, critiques, and bug reports from a
-host of other people, some of which are listed before. If your
-name isn't on this list, please remind me
- -david parsons (orc@pell.chi.il.us)
-
-
-Josh Wood -- Plan9 support.
-Mike Schiraldi -- Reddit style automatic links, MANY MANY MANY
- bug reports about boundary conditions and
- places where I didn't get it right.
-Jjgod Jiang -- Table of contents support.
-Petite Abeille -- Many bug reports about places where I didn't
- get it right.
-Tim Channon -- inspiration for the `mkd_xhtmlpage()` function
-Christian Herenz-- Many bug reports regarding my implementation of
- `[]()` and `![]()`
-A.S.Bradbury -- Portability bug reports for 64 bit systems.
-Joyent -- Loan of a solaris box so I could get discount
- working under solaris.
-Ryan Tomayko -- Portability requests (and the rdiscount ruby
- binding.)
-yidabu -- feedback on the documentation, bug reports
- against utf-8 support.
-Pierre Joye -- bug reports, php discount binding.
-Masayoshi Sekimura- perl discount binding.
-Jeremy Hinegardner- bug reports about list handling.
-Andrew White -- bug reports about the format of generated urls.
-Steve Huff -- bug reports about Makefile portability (for Fink)
-Ignacio Burgue?o-- bug reports about `>%class%`
-Henrik Nyh -- bug reports about embedded html handling.
-
-
View
@@ -1,61 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <stdarg.h>
-#include "cstring.h"
-#include "markdown.h"
-#include "amalloc.h"
-
-
-/* putc() into a cstring
- */
-void
-Csputc(int c, Cstring *iot)
-{
- EXPAND(*iot) = c;
-}
-
-
-/* printf() into a cstring
- */
-int
-Csprintf(Cstring *iot, char *fmt, ...)
-{
- va_list ptr;
- int siz=100;
-
- do {
- RESERVE(*iot, siz);
- va_start(ptr, fmt);
- siz = vsnprintf(T(*iot)+S(*iot), ALLOCATED(*iot)-S(*iot), fmt, ptr);
- va_end(ptr);
- } while ( siz > (ALLOCATED(*iot)-S(*iot)) );
-
- S(*iot) += siz;
- return siz;
-}
-
-
-/* write() into a cstring
- */
-int
-Cswrite(Cstring *iot, char *bfr, int size)
-{
- RESERVE(*iot, size);
- memcpy(T(*iot)+S(*iot), bfr, size);
- S(*iot) += size;
- return size;
-}
-
-
-/* reparse() into a cstring
- */
-void
-Csreparse(Cstring *iot, char *buf, int size, int flags)
-{
- MMIOT f;
- ___mkd_initmmiot(&f, 0);
- ___mkd_reparse(buf, size, 0, &f);
- ___mkd_emblock(&f);
- SUFFIX(*iot, T(f.out), S(f.out));
- ___mkd_freemmiot(&f, 0);
-}
View
@@ -1,41 +0,0 @@
-
- HOW TO BUILD AND INSTALL DISCOUNT
-
-1) Unpacking the distribution
-
-The DISCOUNT sources are distributed in tarballs. After extracting from
-the tarball, you should end up with all the source and build files in the
-directory
- discount-(version)
-
-2) Installing the distribution
-
-DISCOUNT uses configure.sh to set itself up for compilation. To run
-configure, just do ``./configure.sh'' and it will check your system for
-build dependencies and build makefiles for you. If configure.sh finishes
-without complaint, you can then do a ``make'' to compile everything and a
-``make install'' to install the binaries.
-
-Configure.sh has a few options that can be set:
-
---src=DIR where the source lives (.)
---prefix=DIR where to install the final product (/usr/local)
---execdir=DIR where to put executables (prefix/bin)
---sbindir=DIR where to put static executables (prefix/sbin)
---confdir=DIR where to put configuration information (/etc)
---libdir=DIR where to put libraries (prefix/lib)
---libexecdir=DIR where to put private executables
---mandir=DIR where to put manpages
---enable-dl-tag Use the DL tag extension
---enable-pandoc-header Use pandoc-style header blocks
---enable-superscript A^B expands to A<sup>B</sup>
---enable-amalloc Use a debugging memory allocator (to detect leaks)
---relaxed-emphasis Don't treat _ in the middle of a word as emphasis
---with-tabstops=N Set tabstops to N characters (default is 4)
-
-3) Installing sample programs and manpages
-
-The standard ``make install'' rule just installs the binaries. If you
-want to install the sample programs, they are installed with
-``make install.samples''; to install manpages, ``make install.man''.
-A shortcut to install everything is ``make install.everything''
Oops, something went wrong.

0 comments on commit 28cca58

Please sign in to comment.