MultiMarkdown 3.0b4 is a major upgrade:
Found and fixed a step in the parser (under HeadingSection) that was slowing down the program on longer documents by orders of magnitude — thanks to Ioa for prompting the search. My 7000+ line test document takes approx 0.150 seconds to convert to XHTML with peg-markdown, and 0.290 seconds with peg-multimarkdown. By comparison, the perl version of MMD takes approximately 8.3 seconds. Running XSLT takes additional time, so the speed difference when converting to LaTeX would be even more pronounced! There may be additional speed benefits to be squeezed out of code optimization, but I’m not sure it’s worth the effort right now as these benefits would likely be minimal at this point.
John MacFarlane fixed a bug in list edge cases discovered by a MMD user — that fix is incorporated, as well as a speed-up in HTML processing per his release notes.
Metadata that is exported to LaTeX and includes “space-space-newline” as a marker for a line break is now processed so that things like multi-line addresses for letters are properly handled.
italics are now handled with \emph{} in LaTeX
memoir and “regular” latex modes now output the same logical division
levels for h1, h2, etc. (i.e. part, chapter, section,
subsection, subsubsection, paragraph, subparagraph), The
subparagraph option for h7 will only appear when converting directly
from MMD to LaTeX, since no <h7> exists in XHTML. beamer mode uses a
different set of divisions.
The peg-multimarkdown source repository now includes the documentation wiki,
the sample gallery, support files, and test suite as submodules. They can
therefore be downloaded separately as well since they exist as their own
repositories. The update_submodules shell script will update them all
automatically (on Mac or *nix systems).
The LaTeX support files now include a functioning version of the
manuscript setup so that you can create pdf’s using the “standard” novel
manuscript format. This includes some examples of using LaTeX code to
replace what used to be done with XSLT processing. My goal is that most of
what was done using XSLT with MMD 2.0 can be done with pure LaTeX in MMD
3.0. Naturally, anyone who used XSLT to customize XHTML output will still
need to use that approach.
The MultiMarkdown-Gallery (included as samples in the source repo) has
been updated so that everything works with MMD 3.0. I have included the
source text, the “correct” LaTeX output, and the “correct” PDF so that you
can verify everything on your system is working appropriately.
Mac users can now install Platypus and
use the make drop command to build drag and drop apps, or they can be
downloaded from the downloads page. These will run multimarkdown -b or
multimarkdown -t latex -b on files dropped on them. Similar approaches can
be used to make other drag and drop apps as required.
I think I’m getting close to being able to finalize 3.0. Things left to be accomplished:
Finish updating User’s Guide for 3.0 (thanks to etherealmind for contributing to the wiki!)
Improve Windows installer (I have received a submission of a true installer that I need to test out, but should make things much better for Windows users — more to come!)
Things that likely won’t be included in 3.0, but may appear in the future:
I am considering using libxslt to build in support for XSLT processing to
the binary. Not sure about this, versus just including the xsltproc binary
in the installer for Windows users.
I have begun working on ODF support for MMD 3. It’s in very early stages,
but the basics shouldn’t be too hard. For now, will need to use MMD 3 to
create the content.xml file, and then you can zip the template directory
to create an .odt file (which is a zipfile). I have a working minimalist
template that is used, as well as a shell script that zips the folder for
you into a file that can be opened in LibreOffice, OpenOffice, etc. This
might be finished in time for 3.0, but if not I hope to have it ready fairly
soon. This will likely become the official way to create an RTF file moving
forward since OpenDocument can easily be converted.
https://github.com/fletcher/peg-multimarkdown/downloads/
http://fletcherpenney.net/2011/02/multimarkdown_3.0b4_released.html
One thing I can say is that the [][][#] constructions below (three
sets of brackets) will NOT make it, as they do not follow Markdown/MMD
syntax.
It may be possible to do something inside the "locator" bracket....
Further thoughts?
F-
> --
> You received this message because you are subscribed to the Google Groups "MultiMarkdown Discussion List" group.
> To post to this group, send email to multim...@googlegroups.com.
> To unsubscribe from this group, send email to multimarkdow...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/multimarkdown?hl=en.
>
>
--
Fletcher T. Penney
fletche...@gmail.com
Perhaps for version 3.5, but no promises.
For now the --process-html option you mention in your next post is the
way to go.
F-
> --
> You received this message because you are subscribed to the Google Groups "MultiMarkdown Discussion List" group.
> To post to this group, send email to multim...@googlegroups.com.
> To unsubscribe from this group, send email to multimarkdow...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/multimarkdown?hl=en.
>
>
--
Fletcher T. Penney
fletche...@gmail.com
That said, there are a few things that are used commonly in writing
that aren't directly included in XHTML (e.g. footnotes). The goal
here is to have a simple, easy to write, easy to read syntax that fits
most situations.
I might be able to tweak the citation parsing to handle some of these
situations, and file them in an "advanced" section of the manual where
they are hidden from most users who can ignore it.
On Wed, Feb 16, 2011 at 8:37 AM, Sherwood Botsford <sgbot...@gmail.com> wrote:
>
> Yuck. More alphabet soup.
>
> I hope that MMD doesn't lose site of the key aspects of keeping it simple,
> readable. MD was written originally to make writing web pages easy.
> Fletcher added the capability to output other formats. Doing that has
> stretched the syntax some. I would like MMD to remain focused primarily on
> enabling the quick creation of web pages. The other output options should
> focus on getting a reasonable print equivalent of that web page.
>
> (In the following TeX stands for ALL forms of TeX -- latex, bibtex, natlib,)
>
> TeX allows incredible control of every aspect of typesetting. But to do
> that requires lots of markup. To me the difference between the proposed
> syntax and the natbib syntax is minimal. It doesn't save much. There's a
> raft of TeXs out there. Supporting them all is a nightmare.
>
> I'm not sure that MMD is the best tool to write TeX. Perhaps a different
> tool is needed to write TeX to hide the markup.
I think MMD *is* the best tool to write with, knowing that it will
convert your writing into TeX markup, provided you're happy with
relying on the "default" behavior. If you want a lot of fine grained
control over the output, then I agree - you will probably be happier
with hand crafted TeX/LaTeX. For me, however, I want to focus on the
writing and be able to ignore the LaTeX markup behind the scenes.
Even using default behavior, LaTeX generates better output than
anything else the vast majority of the time, IMHO.
> The best solution for this IMHO is a spanning symbol set that tells
> Markdown, "Strip off the spanning symbols, and pass the contents through
> unchanged" This allows people to easily write their own post processing
> code. Somthing like
>
> pass- \citet[chap. 2]{jon90} -pass
You mean like the <!-- foo --> syntax that's been around for quite a
while? :)
My goal is to streamline MMD as much as possible, not complicate it
further. I decline many more feature requests than I implement, and I
don't expect that to change.
F-
What I'll need even more than testers, though, is feedback from anyone
familiar with the OpenDocument XML format to give some pointers.
Particularly ideas on including images and math equations....
F-