Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F115033
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
525 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/lib/bbcode.ex b/lib/bbcode.ex
index 09632e6..7e2a7cb 100644
--- a/lib/bbcode.ex
+++ b/lib/bbcode.ex
@@ -1,20 +1,20 @@
defmodule BBCode do
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, 1:23 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40533
Default Alt Text
(525 B)
Attached To
Mode
R10 bbcode
Attached
Detach File
Event Timeline
Log In to Comment