Skip to content

Commit

Permalink
Merge pull request adamzap#62 from reagle/master
Browse files Browse the repository at this point in the history
Unicode BOM removal and presentation notes documentation clarification.
  • Loading branch information
adamzap committed Jul 20, 2011
2 parents 6e93f63 + 53a1346 commit ccbd362
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Some other macros are also available by default: `.fx: foo bar` will add the `fo

Presenter Notes
===============
You can also add presenter notes to each slide. Press the 'p' key to open the presenter view.
You can also add presenter notes to each slide by following the slide content with a heading entitled "Presenter Notes". Press the 'p' key to open the presenter view.

---

Expand Down
5 changes: 4 additions & 1 deletion src/landslide/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import re

SUPPORTED_FORMATS = {
'markdown': ['.mdown', '.markdown', '.markdn', '.md'],
'markdown': ['.mdown', '.markdown', '.markdn', '.md', '.mdn'],
'restructuredtext': ['.rst', '.rest'],
'textile': ['.textile'],
}
Expand Down Expand Up @@ -65,6 +65,9 @@ def parse(self, text):
except ImportError:
raise RuntimeError(u"Looks like markdown is not installed")

if text.startswith(u'\ufeff'): # check for unicode BOM
text = text[1:]

return markdown.markdown(text, self.md_extensions)
elif self.format == 'restructuredtext':
try:
Expand Down

0 comments on commit ccbd362

Please sign in to comment.