Browse Source

wikipedia: improve wikipedia first paragraph parser

master
parent
commit
66ac7bb511
  1. 2
      src/wikipedia.js

2
src/wikipedia.js

@ -32,7 +32,7 @@ function prepare (div) {
}
var p = content.firstChild.firstChild
while (p && p.tagName !== 'P') {
while (p && (p.tagName !== 'P' || p.className !== '' || p.textContent.match(/^\s*$/))) {
p = p.nextSibling
}

Loading…
Cancel
Save