From 92ed9ac323654ade0e372c5e2d1965045859cb42 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Tue, 1 Dec 2015 17:28:30 -0500 Subject: [PATCH 01/25] ADDED: Add script to build drag and drop apps on OS X --- tools/make_drag_drop_mac.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tools/make_drag_drop_mac.sh diff --git a/tools/make_drag_drop_mac.sh b/tools/make_drag_drop_mac.sh new file mode 100644 index 0000000..93ab905 --- /dev/null +++ b/tools/make_drag_drop_mac.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +# Run this in terminal (with the Platypus command line tool installed) +# to create drag and drop binaries. NOTE: These rarely need to be +# updated, and rely on whatever version of MultiMarkdown you have +# installed. + +# Modified for Platypus version 5 + +/usr/local/bin/platypus --droppable --quit-after-execution \ +--name 'MMD to HTML' --output-type 'Text Window' --interpreter '/bin/sh' \ +--bundle-identifier net.fletcherpenney.MMD2HTML --suffixes '*' \ +'../scripts/mmd' -y MMD2HTML.app + +/usr/local/bin/platypus --droppable --quit-after-execution \ +--name 'MMD to LaTeX' --output-type 'Text Window' --interpreter '/bin/sh' \ +--bundle-identifier net.fletcherpenney.MMD2LaTeX --suffixes '*' \ +'../scripts/mmd2tex' -y MMD2LaTeX.app + +/usr/local/bin/platypus --droppable --quit-after-execution \ +--name 'MMD to OPML' --output-type 'Text Window' --interpreter '/bin/sh' \ +--bundle-identifier net.fletcherpenney.MMD2OPML --suffixes '*' \ +'../scripts/mmd2opml' -y MMD2OPML.app + +/usr/local/bin/platypus --droppable --quit-after-execution \ +--name 'MMD to ODF' --output-type 'Text Window' --interpreter '/bin/sh' \ +--bundle-identifier net.fletcherpenney.MMD2ODF --suffixes '*' \ +'../scripts/mmd2odf' -y MMD2ODF.app + + From 692b1599b5fde02487f75879c5eb2ea1a279466f Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Fri, 4 Dec 2015 08:56:21 -0500 Subject: [PATCH 02/25] ADDED: Beginning code for public header file support; ADDED: Beginning configuration for OS X Bundle/Framework targets --- CMakeLists.txt | 78 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f5fb23..d5a23b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,72 @@ string(TOUPPER ${My_Project_Title} My_Project_Title_Caps ) string(REGEX REPLACE " " "_" My_Project_Title_Caps ${My_Project_Title_Caps} ) +# ================= +# Macro Definitions +# ================= + +MACRO(ADD_PUBLIC_HEADER target filename) + # Add filename to public_header_files list, flag it as + # public header for libraries and OS X Frameworks + + # This will work for creating one library/framework with public headers + # per project. If you need more than one, you will need to customize + # the workflow as appropriate, since there is only one + # public_header_files list. + + SET_TARGET_PROPERTIES(${target} PROPERTIES PUBLIC_HEADER ${filename}) + + LIST(APPEND public_header_files ${filename}) + + SET_SOURCE_FILES_PROPERTIES( + ${filename} + PROPERTIES + MACOSX_PACKAGE_LOCATION + PUBLIC_HEADER + ) + + # Set Xcode project to configure public header location to allow + # use when this project is used in another workspace. + # NOTE: You must manually add a "Headers" build phase and add + # the desired public headers to that list for Xcode to use them. + # + # TODO: If anyone knows how to automate that in Cmake, I would be very + # greatful!! + + SET_TARGET_PROPERTIES(${target} PROPERTIES + XCODE_ATTRIBUTE_PUBLIC_HEADERS_FOLDER_PATH + "include/$(TARGET_NAME)" + ) + + SET_TARGET_PROPERTIES(${target} PROPERTIES + XCODE_ATTRIBUTE_PRIVATE_HEADERS_FOLDER_PATH + "$(PUBLIC_HEADERS_FOLDER_PATH)/Private" + ) + +ENDMACRO(ADD_PUBLIC_HEADER) + + +# The target should be an OS X Bundle with a PList + +MACRO(MAKE_TARGET_BUNDLE targetname) + + set_target_properties( + ${targetname} + PROPERTIES + MACOSX_BUNDLE_INFO_PLIST + ${PROJECT_SOURCE_DIR}/templates/plist.in + ) + +ENDMACRO(MAKE_TARGET_BUNDLE) + + +MACRO(ADD_LINKED_FRAMEWORK frame) + + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGES} -framework ${frame}") + +ENDMACRO(ADD_LINKED_FRAMEWORK) + + # ====================== # Process Template Files # ====================== @@ -69,10 +135,15 @@ set(src_files # src/foo.c ) -# primary header files +# Primary header files, also for doxygen documentation set(header_files ) +# Public headers, will be installed in 'include' +# Do not manually add files here, use the ADD_PUBLIC_HEADER() macro +set(public_header_files +) + # Utility source files will not be included in doxygen set(src_utility_files # src/GLibFacade.c @@ -234,6 +305,11 @@ install (FILES ${CMAKE_CURRENT_LIST_DIR}/README.md ${PROJECT_SOURCE_DIR}/LICENSE DESTINATION . ) +# Use something like this to install public header files (after adding them +# with the ADD_PUBLIC_HEADER() macro) + +# install (FILES ${public_header_files} DESTINATION /usr/local/include/libFoo) + set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${My_Project_Description}") set (CPACK_PACKAGE_VENDOR "${My_Project_Author}") set (CPACK_PACKAGE_VERSION "${My_Project_Version_Major}.${My_Project_Version_Minor}.${My_Project_Version_Patch}") From c376c8f1c43211cf48afd1843e11592af23fd2e9 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Fri, 4 Dec 2015 09:05:53 -0500 Subject: [PATCH 03/25] FIXED: Remove unneeded install directive; FIXED: Fix public header install prefix (I think) --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d5a23b6..358bc99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -301,14 +301,14 @@ endif (WIN32) # You're largely on your own here -install (FILES ${CMAKE_CURRENT_LIST_DIR}/README.md ${PROJECT_SOURCE_DIR}/LICENSE.txt - DESTINATION . -) +# install (FILES ${CMAKE_CURRENT_LIST_DIR}/README.md ${PROJECT_SOURCE_DIR}/LICENSE.txt +# DESTINATION . +# ) # Use something like this to install public header files (after adding them # with the ADD_PUBLIC_HEADER() macro) -# install (FILES ${public_header_files} DESTINATION /usr/local/include/libFoo) +# install (FILES ${public_header_files} DESTINATION local/include/libFoo) set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "${My_Project_Description}") set (CPACK_PACKAGE_VENDOR "${My_Project_Author}") From de3496184489a1313375bb96b924d599ebaa6cda Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Fri, 4 Dec 2015 10:50:07 -0500 Subject: [PATCH 04/25] ADDED: Include support for Xcode libraries to be iOS compatible --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 358bc99..b8e798c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,18 @@ MACRO(ADD_PUBLIC_HEADER target filename) XCODE_ATTRIBUTE_PRIVATE_HEADERS_FOLDER_PATH "$(PUBLIC_HEADERS_FOLDER_PATH)/Private" ) + + # Set Xcode target to include settings for OS X and iOS + + SET_TARGET_PROPERTIES(${target} PROPERTIES + XCODE_ATTRIBUTE_SUPPORTED_PLATFORMS + "macos iphonesimulator iphoneos" + ) + + SET_TARGET_PROPERTIES(${target} PROPERTIES + XCODE_ATTRIBUTE_VALID_ARCHITECTURES + "x86_64 i386 armv6 armv7 armv7s arm64" + ) ENDMACRO(ADD_PUBLIC_HEADER) From 42ea02871e50b56abe680b461a84834f6f873078 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Tue, 8 Dec 2015 10:46:42 -0500 Subject: [PATCH 05/25] NOTE: Fixed git clone instructions in documentation --- submodules/documentation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/documentation b/submodules/documentation index 1242835..311078c 160000 --- a/submodules/documentation +++ b/submodules/documentation @@ -1 +1 @@ -Subproject commit 124283537509815bfc083f1b02c323bf8c4d782b +Subproject commit 311078c131aef960675ed1a5e004c2aab4195222 From f6bcb8a510e20fdb1060982dab30c0042c749074 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 24 Dec 2015 08:42:41 -0500 Subject: [PATCH 06/25] FIXED: fix 'make deprecate' so that it truly doesn't require cmake --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aea54ff..887963d 100644 --- a/Makefile +++ b/Makefile @@ -102,14 +102,13 @@ CHANGELOG: CFLAGS ?= -Wall -g -O3 -include src/GLibFacade.h -include src/version.h -include src/parser.h PROGRAM = multimarkdown -OBJS = build/multimarkdown.o build/parse_utilities.o build/parser.o build/GLibFacade.o build/writer.o build/text.o build/html.o build/latex.o build/memoir.o build/beamer.o build/lyx.o build/lyxbeamer.o build/opml.o build/odf.o build/critic.o build/rng.o build/rtf.o build/transclude.o build/toc.o +OBJS = build/multimarkdown.o build/parse_utilities.o build/parser.o build/GLibFacade.o build/writer.o build/text.o build/html.o build/latex.o build/memoir.o build/beamer.o build/lyx.o build/lyxbeamer.o build/opml.o build/odf.o build/critic.o build/rng.o build/rtf.o build/transclude.o build/toc.o build/%.o: src/%.c src/parser.h src/version.h $(CC) -c $(CFLAGS) -o $@ $< src/version.h: $(BUILD_DIR) cd $(BUILD_DIR); touch README.html; \ - cmake -DVERSION_ONLY=1 ..; cd ..; cp build/version.h src/version.h build/parser.o: src/parser.c src/parser.h $(CC) -c $(CFLAGS) -o $@ $< From 727093a14eb5909ab7804fb147968eb91525f2d0 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 24 Dec 2015 08:44:42 -0500 Subject: [PATCH 07/25] FIXED: Include 'fake' version.h for make deprecate --- src/version.h | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/version.h diff --git a/src/version.h b/src/version.h new file mode 100644 index 0000000..b0bdeb7 --- /dev/null +++ b/src/version.h @@ -0,0 +1,59 @@ +/* + + ***NOTE*** -- this version of the file is only for use with + "make deprecated". It will not be automatically updated with the latest + version information. + + + version_deprecated.h -- MultiMarkdown + + Copyright © 2013-2015 Fletcher T. Penney. + + + The `c-template` project is released under the MIT License. + + + MMD 5 is released under the MIT License. + + + CuTest is released under the zlib/libpng license. See CuTest.c for the text + of the license. + + + ## The MIT License ## + + 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, sublicense, 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: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +*/ + +/** + +@file + +@brief MultiMarkdown - lightweight markup processor - project version header + +**/ + + +#ifndef FILE_MULTIMARKDOWN_VERSION_H +#define FILE_MULTIMARKDOWN_VERSION_H + +#define MULTIMARKDOWN_VERSION "5.0-dep" + +#endif From 0dca73629829d322b2aae253bcb2a3f0ea13ec1e Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 24 Dec 2015 08:53:27 -0500 Subject: [PATCH 08/25] FIXED: Don't delete src/version.h --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 887963d..ddd0b1e 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ PROGRAM = multimarkdown OBJS = build/multimarkdown.o build/parse_utilities.o build/parser.o build/GLibFacade.o build/writer.o build/text.o build/html.o build/latex.o build/memoir.o build/beamer.o build/lyx.o build/lyxbeamer.o build/opml.o build/odf.o build/critic.o build/rng.o build/rtf.o build/transclude.o build/toc.o -build/%.o: src/%.c src/parser.h src/version.h +build/%.o: src/%.c src/parser.h src/version.h $(BUILD_DIR) $(CC) -c $(CFLAGS) -o $@ $< src/version.h: $(BUILD_DIR) @@ -121,4 +121,4 @@ deprecated: $(GREG) build/$(PROGRAM) build/$(PROGRAM): $(OBJS) $(BUILD_DIR) src/version.h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS); \ - rm src/parser.c; rm src/version.h + rm src/parser.c From 08727b57c6383a6051a06e8f323bea29ee8ec7d7 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Sun, 17 Jan 2016 14:44:35 -0500 Subject: [PATCH 09/25] FIXED: Allow 'naturally' aligned table cells like MMD 2 allowed --- src/html.c | 4 ++++ src/latex.c | 5 ++++- src/lyx.c | 4 ++++ src/parser.leg | 8 +++++++- submodules/MarkdownTest | 2 +- 5 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/html.c b/src/html.c index 30dc059..f37f9b7 100644 --- a/src/html.c +++ b/src/html.c @@ -1128,6 +1128,10 @@ void print_col_group(GString *out,scratch_pad *scratch) { g_string_append_printf(out, "\n"); } else if ( strncmp(&temp[lev],"L",1) == 0) { g_string_append_printf(out, "\n"); + } else if ( strncmp(&temp[lev],"N",1) == 0) { + g_string_append_printf(out, "\n"); + } else if ( strncmp(&temp[lev],"n",1) == 0) { + g_string_append_printf(out, "\n"); } else { g_string_append_printf(out, "\n"); } diff --git a/src/latex.c b/src/latex.c index 16e7d0c..20f4903 100644 --- a/src/latex.c +++ b/src/latex.c @@ -845,8 +845,11 @@ void print_latex_node(GString *out, node *n, scratch_pad *scratch) { case TABLESEPARATOR: temp_str = g_string_new(""); for (i = 0; n->str[i]; i++) { - if (n->str[i] != 'h') + if ((n->str[i] == 'N') || (n->str[i] == 'n')) { + g_string_append_printf(temp_str,"L"); + } else if (n->str[i] != 'h') { g_string_append_printf(temp_str,"%c",toupper(n->str[i])); + } } g_string_append_printf(out, "\\begin{tabulary}{\\textwidth}{@{}%s@{}} \\toprule\n", temp_str->str); diff --git a/src/lyx.c b/src/lyx.c index e2cab61..62d0c86 100644 --- a/src/lyx.c +++ b/src/lyx.c @@ -1586,6 +1586,8 @@ void print_lyx_node(GString *out, node *n, scratch_pad *scratch, bool no_newline break; case 'l': case 'L': + case 'N': + case 'n': g_string_append(temp_str,"left"); break; } @@ -1667,6 +1669,8 @@ void print_lyx_node(GString *out, node *n, scratch_pad *scratch, bool no_newline break; case 'l': case 'L': + case 'N': + case 'n': g_string_append(temp_str,"left"); break; } diff --git a/src/parser.leg b/src/parser.leg index 6bfb5db..3c5b58b 100644 --- a/src/parser.leg +++ b/src/parser.leg @@ -1408,9 +1408,15 @@ SeparatorLine = a:StartList HeaderAlignmentCell = Sp ':'? '='+ -AlignmentCell = Sp (!CellDivider ( LeftAlignWrap | CenterAlignWrap | RightAlignWrap | LeftAlign | CenterAlign | RightAlign)) +AlignmentCell = Sp (!CellDivider ( NaturalAlignWrap | LeftAlignWrap | CenterAlignWrap | RightAlignWrap | NaturalAlign | LeftAlign | CenterAlign | RightAlign)) Sp ( CellDivider )? +NaturalAlignWrap = ('-'+ | '='+) '+' &(!'-' !'=' !':') + { $$ = str("N");} + +NaturalAlign = ('-'+ | '='+) &(!'-' !':') + { $$ = str("n");} + LeftAlignWrap = ':'? ('-'+ | '='+) '+' &(!'-' !'=' !':') { $$ = str("L");} diff --git a/submodules/MarkdownTest b/submodules/MarkdownTest index 6109cf0..793440c 160000 --- a/submodules/MarkdownTest +++ b/submodules/MarkdownTest @@ -1 +1 @@ -Subproject commit 6109cf0e95d5fcb5a84b4c2e0f2766b506cbbb68 +Subproject commit 793440c97c5fa480cb83e7c645edd8e3b4704980 From 1b3d0490f3f1403f8d6653870e00c54a59ed545a Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Sun, 17 Jan 2016 15:26:13 -0500 Subject: [PATCH 10/25] FIXED: Allow 'naturally' aligned table cells like MMD 2 allowed --- src/html.c | 21 +++++++++++++++++++++ src/parse_utilities.c | 1 + src/parser.h | 1 + 3 files changed, 23 insertions(+) diff --git a/src/html.c b/src/html.c index f37f9b7..ddd5f45 100644 --- a/src/html.c +++ b/src/html.c @@ -46,6 +46,7 @@ void print_html_node(GString *out, node *n, scratch_pad *scratch) { char *width = NULL; char *height = NULL; GString *temp_str; + size_t temp_size; if (n == NULL) return; @@ -776,6 +777,7 @@ void print_html_node(GString *out, node *n, scratch_pad *scratch) { scratch->cell_type = 0; scratch->padded = 1; scratch->table_alignment = NULL; + scratch->header_column = 0; break; case TABLESEPARATOR: scratch->table_alignment = n->str; @@ -825,6 +827,10 @@ void print_html_node(GString *out, node *n, scratch_pad *scratch) { } else { temp_type = scratch->cell_type; } + + if (scratch->header_column && (scratch->table_column == 0)) + temp_type = 'h'; + lev = scratch->table_column; if ( strncmp(&temp[lev],"r",1) == 0) { g_string_append_printf(out, "\t"); scratch->padded = 2; + temp_size = out->currentStringLength; print_html_node_tree(out, n->children, scratch); + + /* We have an empty leading cell, so first column is shown as headers */ + /* Disabled for now while I decide whether this should be reimplemented -- was in v2 */ + /* if (scratch->table_column == 0) { + if (temp_size == out->currentStringLength) { + scratch->header_column = 1; + } + } + */ + g_string_append_printf(out, "\n", temp_type); scratch->table_column++; break; diff --git a/src/parse_utilities.c b/src/parse_utilities.c index 6f85935..94c467e 100644 --- a/src/parse_utilities.c +++ b/src/parse_utilities.c @@ -263,6 +263,7 @@ scratch_pad * mk_scratch_pad(unsigned long extensions) { result->cell_type = 0; result->table_alignment = NULL; result->table_column = 0; + result->header_column = 0; result->inside_footnote = 0; if (extensions & EXT_RANDOM_FOOT) { diff --git a/src/parser.h b/src/parser.h index 3f51a1a..acf76e4 100644 --- a/src/parser.h +++ b/src/parser.h @@ -53,6 +53,7 @@ typedef struct { int table_column; /* Track the current column number */ bool inside_footnote; /* Are we inside a footnote? */ char cell_type; /* What sort of cell type are we in? */ + bool header_column; /* Should the first column be treated like a header? */ bool printing_notes; /* Are we printing notes/glossary/etc.? */ node *notes; /* Store reference notes */ node *links; /* ... links */ From 20cc43f1ff2f16afd194c5d17a0bf911261541a6 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Wed, 20 Jan 2016 18:14:47 -0500 Subject: [PATCH 11/25] Improve tight vs loose list detection with unusual setext headers --- src/parser.leg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.leg b/src/parser.leg index 3c5b58b..a2bbc61 100644 --- a/src/parser.leg +++ b/src/parser.leg @@ -951,7 +951,7 @@ BulletList = &Bullet (ListTight | ListLoose) ListTight = a:StartList ( ListItemTight { a = cons($$, a); } )+ - BlankLine* !(Bullet | Enumerator | BulletNoSpace &EmptyList | EnumeratorNoSpace &EmptyList ) + BlankLine* (&Heading | !(Bullet | Enumerator | BulletNoSpace &EmptyList | EnumeratorNoSpace &EmptyList )) { $$ = list(LIST, a); } From 69e8a8647f22b3cb7e341f84faaa81e2fe91436d Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Wed, 20 Jan 2016 18:15:10 -0500 Subject: [PATCH 12/25] FIXED: Update MMD test suite for recent table alignment change --- submodules/MarkdownTest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/MarkdownTest b/submodules/MarkdownTest index 793440c..5732118 160000 --- a/submodules/MarkdownTest +++ b/submodules/MarkdownTest @@ -1 +1 @@ -Subproject commit 793440c97c5fa480cb83e7c645edd8e3b4704980 +Subproject commit 57321189d318761254083190344b00e5cb0c2a1e From 03a6898803a7729213aa855788e7a201a3bce2b0 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Sat, 6 Feb 2016 14:02:36 -0500 Subject: [PATCH 13/25] FIXED: Allow newline inside strong/emph (Fixes #10) --- src/parser.leg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parser.leg b/src/parser.leg index a2bbc61..59914a5 100644 --- a/src/parser.leg +++ b/src/parser.leg @@ -472,13 +472,13 @@ EmphMatch = &{ !ext(EXT_NO_EMPH) } (EmphStar | EmphUl) EmphStar = '*' !Whitespace (StrongMatch | BracketedText | - (!'*' !BlankLine .) )+ + (!'*' !(BlankLine BlankLine) .) )+ '*' EmphUl = '_' !Whitespace (StrongMatch | BracketedText | - (!'_' !BlankLine .) )+ + (!'_' !(BlankLine BlankLine) .) )+ '_' Strong = < StrongMatch > @@ -499,13 +499,13 @@ StrongMatch = &{ !ext(EXT_NO_STRONG) } (StrongStar | StrongUl) StrongStar = "**" !Whitespace (EmphMatch | BracketedText | - (!"**" !BlankLine .) )+ + (!"**" !(BlankLine BlankLine) .) )+ "**" StrongUl = "__" !Whitespace (EmphMatch | BracketedText | - (!"__" !BlankLine .) )+ + (!"__" !(BlankLine BlankLine) .) )+ "__" StrongAndEmph = EmphAndStrongStar | EmphAndStrongUl From 6f9a7e5660892e7d89a27766a80d8e4d9bde84aa Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 09:41:13 -0500 Subject: [PATCH 14/25] FIXED: Include additional standard metadata keys in the list to *not* be included in HTML headers --- src/html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/html.c b/src/html.c index ddd5f45..f853f8c 100644 --- a/src/html.c +++ b/src/html.c @@ -257,6 +257,8 @@ void print_html_node(GString *out, node *n, scratch_pad *scratch) { } else if (strcmp(n->str, "mmdfooter") == 0) { } else if (strcmp(n->str, "mmdheader") == 0) { } else if (strcmp(n->str, "lang") == 0) { + } else if (strcmp(n->str, "transcludebase") == 0) { + } else if (strcmp(n->str, "latexmode") == 0) { } else { g_string_append_printf(out,"\tstr); print_html_node(out,n->children,scratch); From aeacb86cdbd2b7e2001afb2e018188bc830e6b23 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 09:49:10 -0500 Subject: [PATCH 15/25] FIXED: Include additional standard metadata keys in the list to *not* be included in HTML headers --- src/html.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/html.c b/src/html.c index f853f8c..10f81c7 100644 --- a/src/html.c +++ b/src/html.c @@ -259,6 +259,9 @@ void print_html_node(GString *out, node *n, scratch_pad *scratch) { } else if (strcmp(n->str, "lang") == 0) { } else if (strcmp(n->str, "transcludebase") == 0) { } else if (strcmp(n->str, "latexmode") == 0) { + } else if (strcmp(n->str, "latexinput") == 0) { + } else if (strcmp(n->str, "latexfooter") == 0) { + } else if (strcmp(n->str, "bibtex") == 0) { } else { g_string_append_printf(out,"\tstr); print_html_node(out,n->children,scratch); From be2319b7c3d09bf6ec0a4ccd88bbdbba690f347d Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 09:50:37 -0500 Subject: [PATCH 16/25] CHANGED: Update test suite --- submodules/MarkdownTest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/MarkdownTest b/submodules/MarkdownTest index 5732118..667b624 160000 --- a/submodules/MarkdownTest +++ b/submodules/MarkdownTest @@ -1 +1 @@ -Subproject commit 57321189d318761254083190344b00e5cb0c2a1e +Subproject commit 667b624d4e6b2eea5c1bd84adbb313b646ab77c4 From d6a579780b6335d88da5f5369c0e79395f8ddb65 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 13:12:17 -0500 Subject: [PATCH 17/25] CHANGED: Update test suite --- submodules/MarkdownTest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/MarkdownTest b/submodules/MarkdownTest index 667b624..747a337 160000 --- a/submodules/MarkdownTest +++ b/submodules/MarkdownTest @@ -1 +1 @@ -Subproject commit 667b624d4e6b2eea5c1bd84adbb313b646ab77c4 +Subproject commit 747a337fb0b3c6741515c8be3e8efac210e1f7f1 From 2d5c30546734fc7f0777367fddca7a97fa6ec816 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 13:13:14 -0500 Subject: [PATCH 18/25] FIXED: Allow metadata variables inside links (e.g. [[%foo]][bar]) --- src/parser.leg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.leg b/src/parser.leg index 59914a5..c6f4a8a 100644 --- a/src/parser.leg +++ b/src/parser.leg @@ -718,7 +718,7 @@ Image = '!' ( !AutoLink Link ) } -Label = < "[" !'[' ( !'^' !'#' &{ ext(EXT_NOTES) } | &. &{ !ext(EXT_NOTES) } ) +Label = < "[" (&"[%" | !'[' ( !'^' !'#' &{ ext(EXT_NOTES) } | &. &{ !ext(EXT_NOTES) } )) a:StartList ( !']' Inline { a = cons($$, a); } )* ']'> From a95e8deb1b8b6c84cdd0144b6588796fb54f3212 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 13:19:05 -0500 Subject: [PATCH 19/25] NOTE: Update test suite --- submodules/MarkdownTest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/MarkdownTest b/submodules/MarkdownTest index 747a337..e424a38 160000 --- a/submodules/MarkdownTest +++ b/submodules/MarkdownTest @@ -1 +1 @@ -Subproject commit 747a337fb0b3c6741515c8be3e8efac210e1f7f1 +Subproject commit e424a3885d81fef0bf33bc640d58f54765ef0826 From 88b0bcaa880d7421bd69cc2975931f445312e152 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 13:49:48 -0500 Subject: [PATCH 20/25] FIXED: Fix problem with strong/emph matching incorrectly --- src/parser.leg | 10 +++++----- submodules/MarkdownTest | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/parser.leg b/src/parser.leg index c6f4a8a..05d5322 100644 --- a/src/parser.leg +++ b/src/parser.leg @@ -449,7 +449,7 @@ UlOrStarLine = (UlLine | StarLine) { $$ = str(yytext); } StarLine = < "****" '*'* > | < Spacechar '*'+ &Spacechar > UlLine = < "____" '_'* > | < Spacechar '_'+ &Spacechar > -Whitespace = Spacechar | Newline +Whitespace = Spacechar | Newline | Eof Emph = < EmphMatch > { @@ -473,13 +473,13 @@ EmphStar = '*' !Whitespace (StrongMatch | BracketedText | (!'*' !(BlankLine BlankLine) .) )+ - '*' + '*' &(SpecialChar | Whitespace) EmphUl = '_' !Whitespace (StrongMatch | BracketedText | (!'_' !(BlankLine BlankLine) .) )+ - '_' + '_' &(SpecialChar | Whitespace) Strong = < StrongMatch > { @@ -500,13 +500,13 @@ StrongStar = "**" !Whitespace (EmphMatch | BracketedText | (!"**" !(BlankLine BlankLine) .) )+ - "**" + "**" &(SpecialChar | Whitespace) StrongUl = "__" !Whitespace (EmphMatch | BracketedText | (!"__" !(BlankLine BlankLine) .) )+ - "__" + "__" &(SpecialChar | Whitespace) StrongAndEmph = EmphAndStrongStar | EmphAndStrongUl diff --git a/submodules/MarkdownTest b/submodules/MarkdownTest index e424a38..028e9e9 160000 --- a/submodules/MarkdownTest +++ b/submodules/MarkdownTest @@ -1 +1 @@ -Subproject commit e424a3885d81fef0bf33bc640d58f54765ef0826 +Subproject commit 028e9e90333b9267ef5c23a552f20eba4572545d From b584161130de3abc3478f1c1a7492ecc01c59131 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 14:06:20 -0500 Subject: [PATCH 21/25] CHANGED: Update copyright info for 2016 --- CMakeLists.txt | 2 +- README.md | 2 +- src/beamer.c | 2 +- src/critic.c | 2 +- src/html.c | 2 +- src/latex.c | 2 +- src/libMultiMarkdown.h | 2 +- src/memoir.c | 2 +- src/multimarkdown.c | 2 +- src/odf.c | 2 +- src/opml.c | 2 +- src/parse_utilities.c | 2 +- src/parser.h | 2 +- src/parser.leg | 2 +- src/text.c | 2 +- src/toc.c | 2 +- src/version.h | 2 +- src/writer.c | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12d25c2..0125981 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ set (My_Project_Version_Patch 1) set (My_Project_Version "${My_Project_Version_Major}.${My_Project_Version_Minor}.${My_Project_Version_Patch}") -set (My_Project_Copyright_Date "2013-2015") +set (My_Project_Copyright_Date "2013-2016") set (My_Project_Copyright "Copyright © ${My_Project_Copyright_Date} ${My_Project_Author}.") project (${My_Project_Title}) diff --git a/README.md b/README.md index f105199..9e674e5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ | Title: | MultiMarkdown | | Author: | Fletcher T. Penney | | Date: | 2015-12-01 | -| Copyright: | Copyright © 2013-2015 Fletcher T. Penney. | +| Copyright: | Copyright © 2013-2016 Fletcher T. Penney. | | Version: | 5.0.1 | diff --git a/src/beamer.c b/src/beamer.c index f80460d..3537f8d 100644 --- a/src/beamer.c +++ b/src/beamer.c @@ -2,7 +2,7 @@ beamer.c -- Beamer add-on to LaTeX writer - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License or the MIT diff --git a/src/critic.c b/src/critic.c index 3baa95a..3c56103 100644 --- a/src/critic.c +++ b/src/critic.c @@ -4,7 +4,7 @@ - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License or the MIT diff --git a/src/html.c b/src/html.c index 10f81c7..3eedc1b 100644 --- a/src/html.c +++ b/src/html.c @@ -2,7 +2,7 @@ html.c -- HTML writer - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). Derived from peg-multimarkdown, which was forked from peg-markdown, which is (c) 2008 John MacFarlane (jgm at berkeley dot edu), and diff --git a/src/latex.c b/src/latex.c index 20f4903..1a04aa6 100644 --- a/src/latex.c +++ b/src/latex.c @@ -2,7 +2,7 @@ latex.c -- LaTeX writer - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). Derived from peg-multimarkdown, which was forked from peg-markdown, which is (c) 2008 John MacFarlane (jgm at berkeley dot edu), and diff --git a/src/libMultiMarkdown.h b/src/libMultiMarkdown.h index b4093ca..acd7921 100644 --- a/src/libMultiMarkdown.h +++ b/src/libMultiMarkdown.h @@ -22,7 +22,7 @@ /* - Copyright © 2013-2015 Fletcher T. Penney. + Copyright © 2013-2016 Fletcher T. Penney. The `c-template` project is released under the MIT License. diff --git a/src/memoir.c b/src/memoir.c index eae547a..a4eb064 100644 --- a/src/memoir.c +++ b/src/memoir.c @@ -2,7 +2,7 @@ memoir.c -- Memoir add-on to LaTeX writer - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License or the MIT diff --git a/src/multimarkdown.c b/src/multimarkdown.c index 8e412f6..506be63 100644 --- a/src/multimarkdown.c +++ b/src/multimarkdown.c @@ -18,7 +18,7 @@ /* - Copyright © 2013-2015 Fletcher T. Penney. + Copyright © 2013-2016 Fletcher T. Penney. MultiMarkdown 4 and 5 are derived from peg-multimarkdown, which was forked from peg-markdown, which is (c) 2008 John MacFarlane diff --git a/src/odf.c b/src/odf.c index ad090f7..23e8d36 100644 --- a/src/odf.c +++ b/src/odf.c @@ -2,7 +2,7 @@ odf.c -- ODF (Flat OpenDocument format) writer - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License or the MIT diff --git a/src/opml.c b/src/opml.c index a74413f..b3669f8 100644 --- a/src/opml.c +++ b/src/opml.c @@ -2,7 +2,7 @@ opml.c -- OPML add-on to LaTeX writer - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License or the MIT diff --git a/src/parse_utilities.c b/src/parse_utilities.c index 94c467e..1efb8dc 100644 --- a/src/parse_utilities.c +++ b/src/parse_utilities.c @@ -2,7 +2,7 @@ parse_utilities.c -- miscellaneous support functions - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). Derived from peg-multimarkdown, which was forked from peg-markdown, which is (c) 2008 John MacFarlane (jgm at berkeley dot edu), and diff --git a/src/parser.h b/src/parser.h index acf76e4..b14f224 100644 --- a/src/parser.h +++ b/src/parser.h @@ -15,7 +15,7 @@ #define TABSTOP 4 #define MMD_COPYRIGHT \ - "Copyright (c) 2013-2015 Fletcher T. Penney.\n\n" \ + "Copyright (c) 2013-2016 Fletcher T. Penney.\n\n" \ "LyX export code (c) 2013-2014 Charles R. Cowan,\n" \ "licensed under the MIT licenses.\n\n" \ "portions based on peg-markdown - Copyright (c) 2008-2009 John MacFarlane.\n" \ diff --git a/src/parser.leg b/src/parser.leg index 05d5322..9abcc7d 100644 --- a/src/parser.leg +++ b/src/parser.leg @@ -4,7 +4,7 @@ parser.leg -> parser.c -- Parse (Multi)Markdown plain text for conversion into other formats - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). Derived from peg-multimarkdown, which was forked from peg-markdown, which is (c) 2008 John MacFarlane (jgm at berkeley dot edu), and diff --git a/src/text.c b/src/text.c index 6a0ab78..f2b2448 100644 --- a/src/text.c +++ b/src/text.c @@ -3,7 +3,7 @@ test.c -- plain text writer function as an example. Recreates the input source. - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License or the MIT diff --git a/src/toc.c b/src/toc.c index 0324a71..00e1b30 100644 --- a/src/toc.c +++ b/src/toc.c @@ -2,7 +2,7 @@ toc.c -- Table of contents - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License or the MIT diff --git a/src/version.h b/src/version.h index b0bdeb7..7d576a4 100644 --- a/src/version.h +++ b/src/version.h @@ -7,7 +7,7 @@ version_deprecated.h -- MultiMarkdown - Copyright © 2013-2015 Fletcher T. Penney. + Copyright © 2013-2016 Fletcher T. Penney. The `c-template` project is released under the MIT License. diff --git a/src/writer.c b/src/writer.c index e3d1187..f4d066f 100644 --- a/src/writer.c +++ b/src/writer.c @@ -3,7 +3,7 @@ writer.c -- General routines for converting parse structure to various output formats. - (c) 2013-2015 Fletcher T. Penney (http://fletcherpenney.net/). + (c) 2013-2016 Fletcher T. Penney (http://fletcherpenney.net/). Derived from peg-multimarkdown, which was forked from peg-markdown, which is (c) 2008 John MacFarlane (jgm at berkeley dot edu), and From 31660ae2d8a8177305f2c5931cf4f042436951cc Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Thu, 18 Feb 2016 14:30:31 -0500 Subject: [PATCH 22/25] FIXED: Change handling of version.h file for deprecated make to keep it separate from cmake alternative --- CMakeLists.txt | 2 +- Makefile | 2 ++ {src => tools}/version.h | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename {src => tools}/version.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0125981..c644eab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,9 +22,9 @@ project (${My_Project_Title}) # Search for included files here +include_directories(${PROJECT_BINARY_DIR}) include_directories( ${PROJECT_SOURCE_DIR}/src ) include_directories( ${PROJECT_SOURCE_DIR}/test ) -include_directories(${PROJECT_BINARY_DIR}) string(TOUPPER ${My_Project_Title} My_Project_Title_Caps ) string(REGEX REPLACE " " "_" My_Project_Title_Caps ${My_Project_Title_Caps} ) diff --git a/Makefile b/Makefile index ddd0b1e..6419a2a 100644 --- a/Makefile +++ b/Makefile @@ -74,6 +74,7 @@ documentation: $(BUILD_DIR) $(GREG) .PHONY : clean clean: rm -rf $(BUILD_DIR)/* + -rm src/version.h # Ensure greg is compiled $(GREG): @@ -109,6 +110,7 @@ build/%.o: src/%.c src/parser.h src/version.h $(BUILD_DIR) src/version.h: $(BUILD_DIR) cd $(BUILD_DIR); touch README.html; \ + cp ../tools/version.h ../src/version.h build/parser.o: src/parser.c src/parser.h $(CC) -c $(CFLAGS) -o $@ $< diff --git a/src/version.h b/tools/version.h similarity index 100% rename from src/version.h rename to tools/version.h From fb3f229ced630d78ae3cb2cbdec4b0d363cb8f36 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Mon, 22 Feb 2016 13:16:37 -0500 Subject: [PATCH 23/25] Allow ATX Headers inside lists --- src/parser.leg | 4 ++-- submodules/MarkdownTest | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser.leg b/src/parser.leg index 9abcc7d..ee990c9 100644 --- a/src/parser.leg +++ b/src/parser.leg @@ -1002,7 +1002,7 @@ EmptyList = BlankLine } ListBlock = a:StartList - ( EmptyList | !Heading Line ) { a = cons($$, a); } + ( EmptyList | !SetextHeading Line ) { a = cons($$, a); } ( ListBlockLine { a = cons($$, a); } )* { $$ = mk_str_from_list(a, false); @@ -1029,7 +1029,7 @@ OrderedList = &Enumerator (ListTight | ListLoose) { $$->key = ORDEREDLIST; } ListBlockLine = !BlankLine - !Heading + !SetextHeading !( Indent? (Bullet | Enumerator | BulletNoSpace &EmptyList | EnumeratorNoSpace &EmptyList ) ) !HorizontalRule OptionallyIndentedLine diff --git a/submodules/MarkdownTest b/submodules/MarkdownTest index 028e9e9..ecf5c61 160000 --- a/submodules/MarkdownTest +++ b/submodules/MarkdownTest @@ -1 +1 @@ -Subproject commit 028e9e90333b9267ef5c23a552f20eba4572545d +Subproject commit ecf5c610259b84c066a566f8cdd749ef4ec322ed From f6bfadba1832264185da33b77a59cb774a8e944a Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Mon, 22 Feb 2016 14:08:26 -0500 Subject: [PATCH 24/25] FIXED: Fix regression in list/heading fix that was overeager --- src/parser.leg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.leg b/src/parser.leg index ee990c9..dcc7ff0 100644 --- a/src/parser.leg +++ b/src/parser.leg @@ -1029,7 +1029,7 @@ OrderedList = &Enumerator (ListTight | ListLoose) { $$->key = ORDEREDLIST; } ListBlockLine = !BlankLine - !SetextHeading + !Heading !( Indent? (Bullet | Enumerator | BulletNoSpace &EmptyList | EnumeratorNoSpace &EmptyList ) ) !HorizontalRule OptionallyIndentedLine From dbb943dad1328e0a766ca94aca3fb058f31a75f9 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Mon, 22 Feb 2016 21:04:47 -0500 Subject: [PATCH 25/25] version bump --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ CMakeLists.txt | 6 +++--- README.md | 4 ++-- tools/version.h | 2 +- 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd8243d..02e34bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,31 @@ # MultiMarkdown Change Log # +## [5.1.0] - 2016-02-22 ## + +* ADDED: Add script to build drag and drop apps on OS X +* ADDED: Beginning code for public header file support; ADDED: Beginning configuration for OS X Bundle/Framework targets +* ADDED: Include support for Xcode libraries to be iOS compatible +* CHANGED: Update copyright info for 2016 +* CHANGED: Update test suite +* FIXED: Allow ATX Headers inside lists +* FIXED: Allow 'naturally' aligned table cells like MMD 2 allowed +* FIXED: Allow metadata variables inside links (e.g. [[%foo]][bar]) +* FIXED: Allow newline inside strong/emph (Fixes #10) +* FIXED: Change handling of version.h file for deprecated make to keep it separate from cmake alternative +* FIXED: Don't delete src/version.h +* FIXED: Fix problem with strong/emph matching incorrectly +* FIXED: Fix regression in list/heading fix that was overeager +* FIXED: Include 'fake' version.h for make deprecate +* FIXED: Include additional standard metadata keys in the list to *not* be included in HTML headers +* FIXED: Remove unneeded install directive; FIXED: Fix public header install prefix (I think) +* FIXED: Update MMD test suite for recent table alignment change +* FIXED: fix 'make deprecate' so that it truly doesn't require cmake +* FIXED: Improve tight vs loose list detection with unusual setext headers +* NOTE: Fixed git clone instructions in documentation +* NOTE: Update test suite + + ## [5.0.1] - 2015-12-01 ## * IMPORTANT: Fix major error in last Makefile! (Only in build branch for a few minutes) @@ -54,3 +79,4 @@ [5.0.0]: https://github.com/fletcher/MultiMarkdown-5/releases/tag/5.0 [5.0.1]: https://github.com/fletcher/MultiMarkdown-5/releases/tag/5.0.1 +[5.1.0]: https://github.com/fletcher/MultiMarkdown-5/releases/tag/5.1.0 diff --git a/CMakeLists.txt b/CMakeLists.txt index c644eab..53396aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,10 +8,10 @@ cmake_minimum_required (VERSION 2.6) set (My_Project_Title "MultiMarkdown") set (My_Project_Description "MultiMarkdown - lightweight markup processor") set (My_Project_Author "Fletcher T. Penney") -set (My_Project_Revised_Date "2015-12-01") +set (My_Project_Revised_Date "2016-02-22") set (My_Project_Version_Major 5) -set (My_Project_Version_Minor 0) -set (My_Project_Version_Patch 1) +set (My_Project_Version_Minor 1) +set (My_Project_Version_Patch 0) set (My_Project_Version "${My_Project_Version_Major}.${My_Project_Version_Minor}.${My_Project_Version_Patch}") diff --git a/README.md b/README.md index 9e674e5..5806f5d 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ | ---------- | ------------------------- | | Title: | MultiMarkdown | | Author: | Fletcher T. Penney | -| Date: | 2015-12-01 | +| Date: | 2016-02-22 | | Copyright: | Copyright © 2013-2016 Fletcher T. Penney. | -| Version: | 5.0.1 | +| Version: | 5.1.0 | ## Introduction ## diff --git a/tools/version.h b/tools/version.h index 7d576a4..b176f60 100644 --- a/tools/version.h +++ b/tools/version.h @@ -54,6 +54,6 @@ #ifndef FILE_MULTIMARKDOWN_VERSION_H #define FILE_MULTIMARKDOWN_VERSION_H -#define MULTIMARKDOWN_VERSION "5.0-dep" +#define MULTIMARKDOWN_VERSION "5.1.0-dep" #endif