Changelog History
Page 2
-
v0.5.3 Changes
๐ Features:
All HTML
table
attributes can be used (summary
,width
,frame
,rules
,border
,cellspacing
,cellpadding
).The next version will hopefully use all HTML attributes.
<!-- A version of Markdown that is more Japanese or something -->
๐ Bug fixes:
Crash on this line: (found by Aggelos Orfanakos)
[test][]:
Regression with attribute system (found by Charles)
-
v0.5.1 Changes
๐ Bug fixes:
- Workaround for Internet Explorer bug:
be very sure that
'
is always written as'
. - Support for empty images ref:
![image]
and![image][]
. - Fixed bug in parsing attribute lists definitions.
- Workaround for Internet Explorer bug:
be very sure that
Minor things:
Now code blocks are written as a
<code>
element inside a<pre>
, and<code>
elements have bothclass
andlang
attributes set to the specified language.Example:
Example {:lang=ruby}
{:lang=markdown}
produces:
<pre><code class='ruby' lang='ruby'>Example</code></pre>
{:lang=xml}
-
v0.5.0 Changes
Syntax changes:
- Compatibility with newest Markdown.pl:
[text]
as a synonim of[text][]
. Meta data: the first IAL in a span environment now refers to the parent. This makes it possible to set attributes for cells:
Head Head {:r} Hello + ... {:r: scope='row'}
The first cell will have the
scope
attribute set torow
.
- Compatibility with newest Markdown.pl:
๐ New settings:
- Disable the Maruku signature by setting
maruku signature: false
- Disable the Maruku signature by setting
Stricter doctype. By the way -- did I mention it? -- Maruku HTML has always been proper validating XHTML strict (if a page does not validate, please report it as a bug).
Of course, this only matters when using
maruku
as a standalone program.- I have updated the XHTML DTD used to support MathML: currently using XHTML+MathML+SVG.
- Content-type set to
application/xhtml+xml
- All entities are written as numeric entities.
๐ Bug fixes
- Many fixes in the code handling the sanitizing of inline HTML.
-
markdown=1
did not propagate to children. - LaTeX: An exception was raised if an unknown entity was used.
-
v0.4.2 Changes
Adapted syntax to the [new meta-data proposal][proposal].
๐ Changes in LaTeX export:
- Links to external URLs are blue by default.
New attributes:
latex_preamble
to add a custom preamble, andlatex_cjk
to add packages for UTF-8 Japanese characters. (support for this is still shaky). Example:Title: my document LaTeX CJK: true LaTeX preamble: preamble.tex Content
๐ Bug fixes
- Images were not given
id
orclass
attributes. - Fixed bug in LaTeX export with handling of
<
,>
enclosed URLs:<google.com>
.
- Images were not given
-
v0.4.1 Changes
๐ Implemented SmartyPants support:
'Twas a "test" to 'remember' -- in the '90s --- while I was <<ok>>. She was 6\"12\'.
'Twas a "test" to 'remember' -- in the '90s --- while I was <>. She was 6\"12\'.
I adapted the code from RubyPants.
Server directives between
<? ?>
are properly preserved.๐ Changes in LaTeX export:
Now Japanese text rendering sort of works, using the following packages:
\usepackage[C40]{fontenc} \usepackage[cjkjis]{ucs} \usepackage[utf8x]{inputenc}
Nevertheless, I could only get bitmap fonts working -- probably it's a problem with my setup.
A quick test: ๆฅๆฌใไธญๅฝใใฒใใใชใใซใฟใซใใ
Fixed bugs in rendering of immediate links.
External packages are
require
d only if needed.More symbols supported. See the symbol list in HTML and in PDF.
0.4
- First implementation of [the new meta-data syntax][meta].
- ๐จ General refactorization of the code and much cleaner error reporting.
- ๐ Created [the RDOC documentation][rdoc].
- The
add_whitespace
method took too much time -- it was O(n2). - โ Added unit-tests for block-level elements.
๐ [rdoc]: http://maruku.rubyforge.org/rdoc/ ๐ [meta]: http://maruku.rubyforge.org/proposal.html
๐ [math]: http://rubyforge.maruku.org/math.html
0.3
๐ A real parser is used instead of a regexp-based system, also for span-level elements.
Now Maruku is almost 2x faster than Bluecloth, while having more features.
Here are some benchmarks:
BlueCloth (to_html): parsing 0.00 sec + rendering 1.54 sec = 1.55 sec Maruku (to_html): parsing 0.47 sec + rendering 0.38 sec = 0.85 sec Maruku (to_latex): parsing 0.49 sec + rendering 0.25 sec = 0.73 sec
This is the result of running
lib/maruku/tests/benchmark.rb
on the Markdown specification.Prettier HTML output by adding whitespace.
โ Added a full suite of unit-tests for the span-level parser.
๐ Error management: Having a real parser, Maruku warns you about syntax issues.
The default action is to warn and try to continue. If you do this:
Maruku.new(string, {:on_error => :raise})
then syntax errors will cause an exception to be raised (you can catch this and retry).
๐ Fixed a series of bugs in handling inline HTML code.
Immediate TODO-list:
UTF-8 input/output works OK for HTML, however I am having pain trying to export to LaTeX. I want at least Japanese characters support, so if you know how to do this you are very welcome to give me an hand.
For example: in the HTML version, you should see accented characters in this parenthesis:
(ร รจรฌรฒรน)
and Japanese text in these other parentheses:
(ใซใฟใซใใง ็งใฎ ๅๅใฏ ใขใณใใฌใข ใใงใณใท ใงใ).
(ๆฅๆฌใฎใฌใซใฏ ๅคงๅฅฝใใใงใใๆฅๆฌ่ชใฏ้ฃใใงใใใใใใใ ่ฑ่ช่ฉฑใใฌใซใ ใใใใฆใใ ใใ).
In the LaTeX version, these do not appear. I know how to do LaTeX with ISO-8859-1 encoding (European characters), but I'm struggling with half-baked solutions for UTF-8 encoded documents.
Implement the [new meta-data proposal][proposal].
๐จ Exporting to Markdown (pretty printing).
Exporting to HTML splitting in multiple files.
๐ RubyPants.
๐ Support for images in PDF.
๐ [proposal]: http://maruku.rubyforge.org/proposal.html
๐ [tracker]: http://rubyforge.org/tracker/?group_id=2795