Skip to content

Commit

Permalink
Merge pull request #28 from vkatsuba/support-xmlText-cdata-type
Browse files Browse the repository at this point in the history
Support `#xmlText{}` of type `cdata`
  • Loading branch information
dumbbell authored Oct 11, 2024
2 parents 4807157 + 6f6aa7c commit 7f1a317
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rebar3_edoc_extensions_export.erl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

-export(['#xml-inheritance#'/0]).

-export(['#root#'/4, '#element#'/5, '#text#'/1]).
-export(['#root#'/4, '#element#'/5, '#text#'/1, '#cdata#'/1]).

-spec '#xml-inheritance#'() -> [].
'#xml-inheritance#'() -> [].
Expand All @@ -23,6 +23,10 @@
'#text#'(Text) ->
xmerl_html:'#text#'(Text).

-spec '#cdata#'(term()) -> term().
'#cdata#'(Text) ->
xmerl_html:'#cdata#'(Text).

-spec '#root#'(term(), term(), [], term()) -> term().
'#root#'(Data, Attrs, [], E) ->
xmerl_html:'#root#'(Data, Attrs, [], E).
Expand Down

0 comments on commit 7f1a317

Please sign in to comment.