Skip to content

Commit

Permalink
fix removing tags from the header link id in markdown, remove the lin…
Browse files Browse the repository at this point in the history
…k to link in presentations header
  • Loading branch information
mpapis committed Sep 7, 2013
1 parent 6696e5f commit 2e31145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/presentations.md
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/code_filter.rb
Expand Up @@ -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
Expand Down

0 comments on commit 2e31145

Please sign in to comment.