Revealed a few quirks in Lib version now that unit tests are in place.

This commit is contained in:
Michel Fortin 2013-04-08 07:51:34 -04:00
parent 6070ddbd7c
commit e045d23969

View file

@ -2588,11 +2588,11 @@ class _MarkdownExtra_TmpImpl extends \Michelf\Markdown {
$separators = preg_split('/ *[|] */', $underline);
foreach ($separators as $n => $s) {
if (preg_match('/^ *-+: *$/', $s))
$attr[$n] = _doTable_makeAlignAttr('right');
$attr[$n] = $this->_doTable_makeAlignAttr('right');
else if (preg_match('/^ *:-+: *$/', $s))
$attr[$n] = _doTable_makeAlignAttr('center');
$attr[$n] = $this->_doTable_makeAlignAttr('center');
else if (preg_match('/^ *:-+ *$/', $s))
$attr[$n] = _doTable_makeAlignAttr('left');
$attr[$n] = $this->_doTable_makeAlignAttr('left');
else
$attr[$n] = '';
}
@ -3016,7 +3016,8 @@ class _MarkdownExtra_TmpImpl extends \Michelf\Markdown {
} else {
$ref_count_mark = $this->footnotes_ref_count[$node_id] += 1;
}
$attr = "";
if ($this->fn_link_class != "") {
$class = $this->fn_link_class;
$class = $this->encodeAttribute($class);