Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85628143
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
Sat, Aug 8, 10:30 AM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1722295
Default Alt Text
(525 B)
Attached To
Mode
R10 bbcode
Attached
Detach File
Event Timeline
Log In to Comment