jjallaire/rcpp-gallery — pull request #61 by olmjo (2014-10-30 16:43:25+00:00)
Title: modify pattern to contain abs path in xml

- will affect only relative paths in feed.xml and featured.xml containing "../figure" which should be the case iff the path is from a knitr figure

*Note: this is grep output so "_site/featured.xml" is the filename. Characters in the text are converted for XML, but that has nothing to do with this PR. It was already happening.*

**Pre-PR XML**

_site/featured.xml:<p><img src="../figure/2014-10-23-SIR-and-revolution-unnamed-chunk-9-1.png" title="plot of chunk unnamed-chunk-9" alt="plot of chunk unnamed-chunk-9" width="800px" height="800px" style="display: block; margin: auto;" /></p>

_site/feed.xml:<p><img src="../figure/2014-10-23-SIR-and-revolution-unnamed-chunk-9-1.png" title="plot of chunk unnamed-chunk-9" alt="plot of chunk unnamed-chunk-9" width="800px" height="800px" style="display: block; margin: auto;" /></p>

**Post-PR XML **

_site/featured.xml:<p><img src="http://gallery.rcpp.org/articles/SIR-and-revolution/../figure/2014-10-23-SIR-and-revolution-unnamed-chunk-9-1.png" title="plot of chunk unnamed-chunk-9" alt="plot of chunk unnamed-chunk-9" width="800px" height="800px" style="display: block; margin: auto;" /></p>

_site/feed.xml:<p><img src="http://gallery.rcpp.org/articles/SIR-and-revolution/../figure/2014-10-23-SIR-and-revolution-unnamed-chunk-9-1.png" title="plot of chunk unnamed-chunk-9" alt="plot of chunk unnamed-chunk-9" width="800px" height="800px" style="display: block; margin: auto;" /></p>