Skip to content

Commit

Permalink
Merge branch 'release/6.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcher committed Aug 15, 2017
2 parents 3568707 + 285b289 commit b0be59d
Show file tree
Hide file tree
Showing 105 changed files with 14,068 additions and 9,105 deletions.
61 changes: 61 additions & 0 deletions .astylerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# astyle configuration file
# http://astyle.sourceforge.net/astyle.html


# Brace style
--style=java


# Indents
--indent=tab=4


# Switch statements
--indent-switches


# Break long conditionals
--break-after-logical


# Indent pre-processor directives
--indent-preproc-block
--indent-preproc-define
--indent-preproc-cond


# Line endings
--lineend=linux


# Add brackets to one-liners
--add-brackets


# Pad with blank lines
--break-blocks


# Pad with spaces
--pad-oper
--pad-header


# Pointers/References
--align-reference=name


# Excludes
--exclude="Sources/libMultiMarkdown/scanners.c"
--exclude="Sources/libMultiMarkdown/parser.c"
--exclude="Sources/libMultiMarkdown/lexer.c"

--exclude="Sources/libMultiMarkdown/i18n.h"
--exclude="Sources/libMultiMarkdown/miniz.c"
--exclude="Sources/libMultiMarkdown/miniz.h"
--exclude="Sources/libMultiMarkdown/uthash.h"

--exclude="Sources/multimarkdown/argtable3.c"
--exclude="Sources/multimarkdown/argtable3.h"

--ignore-exclude-errors
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ test/a.out

/.build
/Packages
/mmd-swift.xcodeproj
/mmd-swift.xcodeproj

*.orig
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ branches:
only:
- master
- develop
- /^\d+\.\d+.*/
- /^\d+\.\d+.*/
os:
- linux
- osx
sudo: false
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ cmake_minimum_required (VERSION 2.6)
set (My_Project_Title "MultiMarkdown")
set (My_Project_Description "Lightweight markup processor to produce HTML, LaTeX, and more.")
set (My_Project_Author "Fletcher T. Penney")
set (My_Project_Revised_Date "2017-07-06")
set (My_Project_Revised_Date "2017-08-15")
set (My_Project_Version_Major 6)
set (My_Project_Version_Minor 1)
set (My_Project_Version_Minor 2)
set (My_Project_Version_Patch 0)

set (My_Project_Version "${My_Project_Version_Major}.${My_Project_Version_Minor}.${My_Project_Version_Patch}")
Expand Down Expand Up @@ -491,6 +491,7 @@ SET_TARGET_PROPERTIES(libMultiMarkdown PROPERTIES
ADD_PUBLIC_HEADER(libMultiMarkdown Sources/libMultiMarkdown/include/libMultiMarkdown.h)
ADD_PUBLIC_HEADER(libMultiMarkdown Sources/libMultiMarkdown/include/d_string.h)
ADD_PUBLIC_HEADER(libMultiMarkdown Sources/libMultiMarkdown/include/token.h)
ADD_PUBLIC_HEADER(libMultiMarkdown Sources/libMultiMarkdown/include/version.h)

# Create a command-line app?
# if (NOT DEFINED TEST)
Expand Down Expand Up @@ -620,7 +621,7 @@ enable_testing()
function(ADD_MMD_TEST NAME FLAGS FOLDER EXTENSION)
add_test ( ${NAME}
${PROJECT_SOURCE_DIR}/tests/MarkdownTest.pl
--Script=${CMAKE_CURRENT_BINARY_DIR}/multimarkdown
--Script="${CMAKE_CURRENT_BINARY_DIR}/multimarkdown"
--testdir=${PROJECT_SOURCE_DIR}/tests/${FOLDER}
"--Flags=${FLAGS}"
--ext=${EXTENSION}
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,9 @@ $(XCODE_DEBUG_BUILD_DIR):
# Generate a list of changes since last commit to 'master' branch
.PHONY : CHANGELOG
CHANGELOG:
git log master..develop --format="* %s" | sort | uniq > CHANGELOG-UNRELEASED
-git log master..develop --format="* %s" | sort | uniq > CHANGELOG-UNRELEASED

# Use astyle
.PHONY : astyle
astyle:
astyle --options=.astylerc "Sources/libMultiMarkdown/*.c" "Sources/multimarkdown/*.c" "Sources/libMultiMarkdown/*.h" "Sources/multimarkdown/*.h"
Binary file modified QuickStart/QuickStart.epub
Binary file not shown.
105 changes: 57 additions & 48 deletions QuickStart/QuickStart.fodt
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0"
xmlns:ooo="http://openoffice.org/2004/office"
xmlns:ooow="http://openoffice.org/2004/writer"
xmlns:oooc="http://openoffice.org/2004/calc"
xmlns:dom="http://www.w3.org/2001/xml-events"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rpt="http://openoffice.org/2005/report"
xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:grddl="http://www.w3.org/2003/g/data-view#"
xmlns:tableooo="http://openoffice.org/2009/table"
xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0"
xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0"
xmlns:css3t="http://www.w3.org/TR/css3-text/"
office:version="1.2"
grddl:transformation="http://docs.oasis-open.org/office/1.2/xslt/odf2rdf.xsl"
office:mimetype="application/vnd.oasis.opendocument.text">
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
xmlns:ooo="http://openoffice.org/2004/office"
xmlns:ooow="http://openoffice.org/2004/writer"
xmlns:oooc="http://openoffice.org/2004/calc"
xmlns:dom="http://www.w3.org/2001/xml-events"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rpt="http://openoffice.org/2005/report"
xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:grddl="http://www.w3.org/2003/g/data-view#"
xmlns:officeooo="http://openoffice.org/2009/office"
xmlns:tableooo="http://openoffice.org/2009/table"
xmlns:drawooo="http://openoffice.org/2010/draw"
xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0"
xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"
xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0"
xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0"
xmlns:css3t="http://www.w3.org/TR/css3-text/"
office:version="1.2"
office:mimetype="application/vnd.oasis.opendocument.text">
<office:font-face-decls>
<style:font-face style:name="Courier New" svg:font-family="'Courier New'"
style:font-adornments="Regular"
Expand Down Expand Up @@ -273,7 +275,7 @@
</office:master-styles>
<office:meta>
<dc:title>MultiMarkdown v6 Quick Start Guide</dc:title>
<meta:user-defined meta:name="author">Fletcher T. Penney</meta:user-defined>
<dc:creator>Fletcher T. Penney</dc:creator>
<meta:user-defined meta:name="version">6.1.0</meta:user-defined>
<meta:user-defined meta:name="uuid">0d6313fa-9135-477e-9c14-7d62c1977833</meta:user-defined>
</office:meta>
Expand Down Expand Up @@ -691,6 +693,13 @@ options are <text:span text:style-name="Source_20_Text">dutch</text:span>, <text

</text:list>

<text:p text:style-name="Standard">Additionally, the <text:span text:style-name="Source_20_Text">MMD Header</text:span> and <text:span text:style-name="Source_20_Text">MMD Footer</text:span> metadata work slightly differently. In
v5, these fields were used to list names of files that should be transcluded before and after
the main body. In v6, these fields represent the actual text to be inserted. If you want them
to reference separate files, use the transclusion functionality:</text:p>

<text:p text:style-name="Preformatted Text">Title:<text:tab/>Some Title<text:line-break/>MMD Header:<text:tab/>This is *MMD* text.<text:line-break/>MMD Footer:<text:tab/>{{footer.txt}}<text:line-break/></text:p>

<text:h text:outline-level="4"><text:bookmark text:name="outputformats"/>Output Formats </text:h>

<text:p text:style-name="Standard">MultiMarkdown 6 supports the following output formats, using the <text:span text:style-name="Source_20_Text">-t</text:span>
Expand Down Expand Up @@ -777,47 +786,47 @@ path for included files. For example:</text:p>

<table:table-row>
<table:table-cell>
<text:p text:style-name="Table_20_Heading"> Directory </text:p>
<text:p text:style-name="Table_20_Heading"> Directory<text:tab/></text:p>
</table:table-cell>
<table:table-cell>
<text:p text:style-name="Table_20_Heading"> Transcluded Filename </text:p>
<text:p text:style-name="Table_20_Heading"> Transcluded Filename<text:tab/></text:p>
</table:table-cell>
<table:table-cell>
<text:p text:style-name="Table_20_Heading"> Resolved Path </text:p>
<text:p text:style-name="Table_20_Heading"> Resolved Path <text:tab/></text:p>
</table:table-cell>
</table:table-row>

<table:table-row>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/</text:span><text:tab/></text:p>
</table:table-cell>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">bat</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">bat</text:span><text:tab/></text:p>
</table:table-cell>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/bat</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/bat</text:span><text:tab/></text:p>
</table:table-cell>
</table:table-row>
<table:table-row>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/</text:span><text:tab/></text:p>
</table:table-cell>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">baz/bat</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">baz/bat</text:span><text:tab/></text:p>
</table:table-cell>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/baz/bat</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/baz/bat</text:span><text:tab/></text:p>
</table:table-cell>
</table:table-row>
<table:table-row>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bar/</text:span><text:tab/></text:p>
</table:table-cell>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">../bat</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">../bat</text:span> <text:tab/></text:p>
</table:table-cell>
<table:table-cell>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bat</text:span> </text:p>
<text:p text:style-name="MMD-Table"> <text:span text:style-name="Source_20_Text">/foo/bat</text:span><text:tab/></text:p>
</table:table-cell>
</table:table-row>

Expand Down Expand Up @@ -862,4 +871,4 @@ and &#8220;stuff between headers&#8221;.</text:p></text:list-item>
</text:list>
</office:text>
</office:body>
</office:document>
</office:document>
35 changes: 23 additions & 12 deletions QuickStart/QuickStart.html
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,16 @@ <h4 id="metadata">Metadata </h4>
<code>fr</code>, <code>de</code>, <code>sv</code>. Anything else defaults to English.</p></li>
</ul>

<p>Additionally, the <code>MMD Header</code> and <code>MMD Footer</code> metadata work slightly differently. In
v5, these fields were used to list names of files that should be transcluded before and after
the main body. In v6, these fields represent the actual text to be inserted. If you want them
to reference separate files, use the transclusion functionality:</p>

<pre><code>Title: Some Title
MMD Header: This is *MMD* text.
MMD Footer: {{footer.txt}}
</code></pre>

<h4 id="outputformats">Output Formats </h4>

<p>MultiMarkdown 6 supports the following output formats, using the <code>-t</code>
Expand Down Expand Up @@ -445,27 +455,27 @@ <h4 id="transclusion">Transclusion </h4>

<thead>
<tr>
<th> Directory </th>
<th> Transcluded Filename </th>
<th> Resolved Path </th>
<th> Directory </th>
<th> Transcluded Filename </th>
<th> Resolved Path </th>
</tr>
</thead>

<tbody>
<tr>
<td> <code>/foo/bar/</code> </td>
<td> <code>bat</code> </td>
<td> <code>/foo/bar/bat</code> </td>
<td> <code>/foo/bar/</code> </td>
<td> <code>bat</code> </td>
<td> <code>/foo/bar/bat</code> </td>
</tr>
<tr>
<td> <code>/foo/bar/</code> </td>
<td> <code>baz/bat</code> </td>
<td> <code>/foo/bar/baz/bat</code> </td>
<td> <code>/foo/bar/</code> </td>
<td> <code>baz/bat</code> </td>
<td> <code>/foo/bar/baz/bat</code> </td>
</tr>
<tr>
<td> <code>/foo/bar/</code> </td>
<td> <code>../bat</code> </td>
<td> <code>/foo/bat</code> </td>
<td> <code>/foo/bar/</code> </td>
<td> <code>../bat</code> </td>
<td> <code>/foo/bat</code> </td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -530,3 +540,4 @@ <h3 id="futuresteps">Future Steps </h3>

</body>
</html>

Binary file modified QuickStart/QuickStart.pdf
Binary file not shown.
20 changes: 14 additions & 6 deletions QuickStart/QuickStart.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,15 @@ will also set the default `quotes language`.
options are `dutch`, `french`, `german`, `germanguillemets`, `swedish`, `nl`,
`fr`, `de`, `sv`. Anything else defaults to English.

Additionally, the `MMD Header` and `MMD Footer` metadata work slightly differently. In
v5, these fields were used to list names of files that should be transcluded before and after
the main body. In v6, these fields represent the actual text to be inserted. If you want them
to reference separate files, use the transclusion functionality:

Title: Some Title
MMD Header: This is *MMD* text.
MMD Footer: {{footer.txt}}


## Output Formats ##

Expand Down Expand Up @@ -418,12 +427,11 @@ handled is more flexible, though it may take a moment to understand.
When you process a file with MMD, it uses that file's directory as the search
path for included files. For example:

| Directory | Transcluded Filename | Resolved Path |
| ----------- | -------------------- | ------------------ |
| `/foo/bar/` | `bat` | `/foo/bar/bat` |
| `/foo/bar/` | `baz/bat` | `/foo/bar/baz/bat` |
| `/foo/bar/` | `../bat` | `/foo/bat` |

| Directory | Transcluded Filename | Resolved Path |
| ------------------ | ----------------------------- | ------------------------------ |
| `/foo/bar/` | `bat` | `/foo/bar/bat` |
| `/foo/bar/` | `baz/bat` | `/foo/bar/baz/bat` |
| `/foo/bar/` | `../bat` | `/foo/bat` |

This is the same as MMD v 5. What's different is that when you transclude a
file, the search path stays the same as the "parent" file, **UNLESS** you use
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
| ---------- | ------------------------- |
| Title: | MultiMarkdown |
| Author: | Fletcher T. Penney |
| Date: | 2017-07-06 |
| Date: | 2017-08-15 |
| Copyright: | Copyright © 2016 - 2017 Fletcher T. Penney. |
| Version: | 6.1.0 |
| Version: | 6.2.0 |

master branch: [![Build Status](https://travis-ci.org/fletcher/MultiMarkdown-6.svg?branch=master)](https://travis-ci.org/fletcher/MultiMarkdown-6)
develop branch: [![Build Status](https://travis-ci.org/fletcher/MultiMarkdown-6.svg?branch=develop)](https://travis-ci.org/fletcher/MultiMarkdown-6)
Expand Down
Loading

0 comments on commit b0be59d

Please sign in to comment.