Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

peg MMD vs Perl MMD in HTML Output of Citations & Footnotes #110

Closed
johanolofolsson opened this issue Feb 29, 2012 · 2 comments
Closed

peg MMD vs Perl MMD in HTML Output of Citations & Footnotes #110

johanolofolsson opened this issue Feb 29, 2012 · 2 comments

Comments

@johanolofolsson
Copy link

Short Question:
the old Perl MMD outputs citations and footnotes differently from peg MMD, why the change?

Longer Question:

I originally posted this issue on the Marked app support pages: http://support.markedapp.com/discussions/problems/209-marked-incorrectly-processes-mmd-citations-html

But I then learnt that it is a difference between the old Perl MMD (what I remember using on my old linux laptop) and peg MMD, which is what Marked uses.

Essentially, I seem to remember that Perl MMD would output HTML where citations and footnotes were placed in separate divs and were numbered independently of each other. But now they seem to be both put in a footnote div and numbered based on how they appeared in the MMD text. I have to say I liked the old style more, and I was wondering what the rationale was for the change?

Byword seems to come with Perl MMD, as it outputs citations and footnotes in that way. However I do prefer previewing HTML in Marked.

I appreciate that this won't be at the top of your to-do list, and perhaps I'm one of the few who prefers the old output. I also see it as a fun excuse to finally learn some XSLT so that I can tweak the HTML output to exactly what I want.

Cheers,

Johan

@fletcher
Copy link
Owner

fletcher commented Mar 1, 2012

The way the text is processed is completely different with MMD 3 which uses a PEG grammar, and MMD 2 which used a messy batch of perl regular expressions.

When rewriting to accommodate this many things had to be adjusted, but I view almost all of them as improvements and don't plan on changing anything back at this point.

As you say, this is exactly where an xslt can be useful.

F

Sent from my iPhone

On Feb 29, 2012, at 6:49 AM, folo1988reply@reply.github.com wrote:

Short Question:
the old Perl MMD outputs citations and footnotes differently from peg MMD, why the change?

Longer Question:

I originally posted this issue on the Marked app support pages: http://support.markedapp.com/discussions/problems/209-marked-incorrectly-processes-mmd-citations-html

But I then learnt that it is a difference between the old Perl MMD (what I remember using on my old linux laptop) and peg MMD, which is what Marked uses.

Essentially, I seem to remember that Perl MMD would output HTML where citations and footnotes were placed in separate divs and were numbered independently of each other. But now they seem to be both put in a footnote div and numbered based on how they appeared in the MMD text. I have to say I liked the old style more, and I was wondering what the rationale was for the change?

Byword seems to come with Perl MMD, as it outputs citations and footnotes in that way. However I do prefer previewing HTML in Marked.

I appreciate that this won't be at the top of your to-do list, and perhaps I'm one of the few who prefers the old output. I also see it as a fun excuse to finally learn some XSLT so that I can tweak the HTML output to exactly what I want.

Cheers,

Johan


Reply to this email directly or view it on GitHub:
#110

@johanolofolsson
Copy link
Author

Thanks for the quick reply. I completely get that changes happen, and are there to satisfy the majority users of MMD. And I guess that's were a bit of fun xslt comes in, for people who want to extend things further.

Cheers, I'll mark this as closed.

Johan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants