Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F115070
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
546 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/lib/bbcode.ex b/lib/bbcode.ex
index 1726b40..09632e6 100644
--- a/lib/bbcode.ex
+++ b/lib/bbcode.ex
@@ -1,14 +1,20 @@
defmodule BBCode do
- alias BBCode.Parser
alias BBCode.Generator
+ alias BBCode.Parser
+
+ @moduledoc """
+ # BBCode
+
+ A library providing BBCode parsing for Elixir applications.
+ """
def to_html(data) do
with {:ok, tree} <- Parser.parse(data),
{:ok, html} <- Generator.to_html(tree) do
{:ok, html}
else
{:error, e} ->
{:error, e}
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Wed, Nov 27, 4:41 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40552
Default Alt Text
(546 B)
Attached To
Mode
R10 bbcode
Attached
Detach File
Event Timeline
Log In to Comment