diff --git a/src/wikipedia.js b/src/wikipedia.js index 42964353..ff01c901 100644 --- a/src/wikipedia.js +++ b/src/wikipedia.js @@ -32,7 +32,7 @@ function prepare (div) { } var p = content.firstChild.firstChild - while (p && (p.tagName !== 'P' || p.className !== '' || p.textContent.match(/^\s*$/))) { + while (p && (p.tagName !== 'P' || p.className !== '' || p.textContent.match(/^\s*$/) || p.querySelector('span#coordinates'))) { p = p.nextSibling }