diff --git a/components/gfx/text/glyph.rs b/components/gfx/text/glyph.rs
index 2ea2d7c5d2e..5fcfb227a6c 100644
--- a/components/gfx/text/glyph.rs
+++ b/components/gfx/text/glyph.rs
@@ -484,7 +484,7 @@ impl<'a> GlyphInfo<'a> {
/// Simple glyphs are stored inline in the `entry_buffer`, detailed glyphs are
/// stored as pointers into the `detail_store`.
///
-/// ~~~
+/// ~~~ignore
/// +- GlyphStore --------------------------------+
/// | +---+---+---+---+---+---+---+ |
/// | entry_buffer: | | s | | s | | s | s | | d = detailed
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 163aa338b47..81910a2d915 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -109,14 +109,17 @@ pub struct InlineFragmentsConstructionResult {
/// Represents an {ib} split that has not yet found the containing block that it belongs to. This
/// is somewhat tricky. An example may be helpful. For this DOM fragment:
///
+/// ```html
///
/// A
/// B
/// C
///
+/// ```
///
/// The resulting `ConstructionItem` for the outer `span` will be:
///
+/// ```ignore
/// InlineFragmentsConstructionItem(Some(~[
/// InlineBlockSplit {
/// predecessor_fragments: ~[
@@ -128,6 +131,7 @@ pub struct InlineFragmentsConstructionResult {
/// }),~[
/// C
/// ])
+/// ```
pub struct InlineBlockSplit {
/// The inline fragments that precede the flow.
pub predecessors: InlineFragments,
diff --git a/components/net/fetch/cors_cache.rs b/components/net/fetch/cors_cache.rs
index fb6676e8064..b98874af790 100644
--- a/components/net/fetch/cors_cache.rs
+++ b/components/net/fetch/cors_cache.rs
@@ -250,7 +250,7 @@ impl CORSCache for CORSCacheSender {
/// A simple task-based CORS Cache that can be sent messages
///
/// #Example
-/// ```
+/// ```ignore
/// let task = CORSCacheTask::new();
/// let builder = TaskBuilder::new().named("XHRTask");
/// let mut sender = task.get_sender();
diff --git a/components/util/range.rs b/components/util/range.rs
index ffea08e6264..123bd42a280 100644
--- a/components/util/range.rs
+++ b/components/util/range.rs
@@ -137,7 +137,7 @@ impl Range {
/// Create a new range from beginning and length offsets. This could be
/// denoted as `[begin, begin + length)`.
///
- /// ~~~
+ /// ~~~ignore
/// |-- begin ->|-- length ->|
/// | | |
/// <- o - - - - - +============+ - - - ->
@@ -154,7 +154,7 @@ impl Range {
/// The index offset to the beginning of the range.
///
- /// ~~~
+ /// ~~~ignore
/// |-- begin ->|
/// | |
/// <- o - - - - - +============+ - - - ->
@@ -164,7 +164,7 @@ impl Range {
/// The index offset from the beginning to the end of the range.
///
- /// ~~~
+ /// ~~~ignore
/// |-- length ->|
/// | |
/// <- o - - - - - +============+ - - - ->
@@ -174,7 +174,7 @@ impl Range {
/// The index offset to the end of the range.
///
- /// ~~~
+ /// ~~~ignore
/// |--------- end --------->|
/// | |
/// <- o - - - - - +============+ - - - ->
@@ -184,7 +184,7 @@ impl Range {
/// `true` if the index is between the beginning and the end of the range.
///
- /// ~~~
+ /// ~~~ignore
/// false true false
/// | | |
/// <- o - - + - - +=====+======+ - + - ->
@@ -202,7 +202,7 @@ impl Range {
/// Shift the entire range by the supplied index delta.
///
- /// ~~~
+ /// ~~~ignore
/// |-- delta ->|
/// | |
/// <- o - +============+ - - - - - | - - - ->
@@ -216,7 +216,7 @@ impl Range {
/// Extend the end of the range by the supplied index delta.
///
- /// ~~~
+ /// ~~~ignore
/// |-- delta ->|
/// | |
/// <- o - - - - - +====+ - - - - - | - - - ->
@@ -230,7 +230,7 @@ impl Range {
/// Move the end of the range to the target index.
///
- /// ~~~
+ /// ~~~ignore
/// target
/// |
/// <- o - - - - - +====+ - - - - - | - - - ->
diff --git a/components/util/str.rs b/components/util/str.rs
index 9d07cf80b99..589795c0f7d 100644
--- a/components/util/str.rs
+++ b/components/util/str.rs
@@ -33,8 +33,7 @@ pub fn is_whitespace(s: &str) -> bool {
/// A "space character" according to:
///
-/// http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#
-/// space-character
+/// http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character
pub static HTML_SPACE_CHARACTERS: StaticCharVec = &[
'\u0020',
'\u0009',