Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix removing tags from the header link id in markdown, remove the lin…

…k to link in presentations header
  • Loading branch information...
commit 2e3114526472639d8341bb73c5db75116070cd6b 1 parent 6696e5f
@mpapis mpapis authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  content/presentations.md
  2. +1 −1  lib/code_filter.rb
View
2  content/presentations.md
@@ -2,7 +2,7 @@
title: "RVM Presentations"
---
-## [Presentations](/presentations/)
+## Presentations
- [MWRC 2010 Presentation Video](http://www.confreaks.com/videos/3-mwrc2010-managing-ruby-projects-with-rvm)
- [Interview at RailsConf 2010](http://blip.tv/file/3766138)
View
2  lib/code_filter.rb
@@ -25,7 +25,7 @@ def run(content, params={})
def create_id(content)
content
.downcase # small leters
- .gsub(/<\/?code>/,'') # remove <code></code> tags
+ .gsub(/<.*?>/,'') # remove tags
.gsub(/[^[:alnum:] -]/,"") # only chars, numbers, spaces and dash
.gsub(/[ ]/, "-") # convert spaces to dashes
.gsub(/-+/, "-") # convert multiple dashes to single
Please sign in to comment.
Something went wrong with that request. Please try again.