iterationlabs/ruby-readability — Issue #19: H1 gets lost
Author: louismullie
Created: 2012-02-25 20:21:40+00:00
State: open

I have been experimenting with the gem to retrieve content from Wikipedia pages, but it seems that the H1 tags get lost during the process of text extraction:

```ruby
source = open('http://en.wikipedia.org/wiki/Frimley_Green_Windmill').read
puts Readability::Document.new(source, tags: ['h1', 'p', 'div']).content
```

Output:

```html

Frimley Green Windmill is a Grade II listed[1]tower mill at Frimley Green, Surrey, England which has been converted to residential use.

[edit] History

Frimley Green Windmill was first mentioned in 1784 in the ownership of a Mr Terry. It passed to Thomas Lilley in 1792 and then William Collins in 1801. In 1803, the mill passed into the ownership of the Royal Military College, Sandhurst, remaining in the hands of the military until at least 1832 and probably much later than that. The mill was disused by 1870, and the derelict shell was converted to residential use in 1914. [2]

[edit] Description

For an explanation of the various pieces of machinery, see Mill machinery.

Frimley Green Windmill is a four storey brick tower mill. Little is known of the mill, although it had at least one pair of Spring or Patent sails.[2]

[edit] Millers
George Marshall 1792
John Banks 1801

Reference for above:-[2]

[edit] External links
[edit] References

```

This is missing the only h1 tag on the page,

```html

Frimley Green Windmill

```

I have experienced the same quirk with all Wikipedia pages. Any idea what could be causing this?