From 6d2453fd95214ca3269c3d9f7f1e2a00d3f3ceee Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 3 May 2013 21:42:37 +0100 Subject: Parse paragraph matcher --- lib/document-to-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/document-to-html.js') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 930e869..94c8b6a 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -87,7 +87,7 @@ function DocumentConverter(options) { function findStyle(element) { for (var i = 0; i < styleMap.length; i++) { - if (styleMap[i].from(element)) { + if (styleMap[i].from.matches(element)) { return styleMap[i]; } } -- cgit v1.2.3