Permalink
Browse files

Fix README

  • Loading branch information...
1 parent 6d3a263 commit 73533483594ea7b93d4e2ea687c82efb0a0715a6 @evanmiller committed Jun 15, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +2 −2 src/jerome.erl
View
@@ -6,10 +6,10 @@ bold, italic, lists, tables, and hyperlinks. At present the number of supported
formats is small. Usage:
% Read
- RichText = jerome:read("/path/to/file.rtf", rtf)
+ RichText = jerome:parse("/path/to/file.rtf", rtf)
% Write
- jerome:write(RichText, "/path/to/file.html", html)
+ {ok, IOList} = jerome:generate(RichText, html)
Available formats:
View
@@ -6,8 +6,8 @@
% Jerome - a rich-text reader/writer
-parse(Path, Format) ->
- parse(Path, Format, fun(Img) -> {ok, Img} end).
+parse(PathOrBinary, Format) ->
+ parse(PathOrBinary, Format, fun(Img) -> {ok, Img} end).
parse(Path, Format, ImageFun) when is_list(Path) ->
{ok, Binary} = file:read_file(Path),

0 comments on commit 7353348

Please sign in to comment.