@@ -705,11 +705,11 @@ exit(CompileContext1 = #markdown_html_compile_context{events = Events, index = I
705705 definition_title_string -> on_exit_definition_title_string (CompileContext1 );
706706 emphasis -> on_exit_emphasis (CompileContext1 );
707707 frontmatter -> on_exit_frontmatter (CompileContext1 );
708- % gfm_autolink_literal_email -> on_exit_gfm_autolink_literal_email(CompileContext1);
709- % gfm_autolink_literal_mailto -> on_exit_gfm_autolink_literal_mailto(CompileContext1);
710- % gfm_autolink_literal_protocol -> on_exit_gfm_autolink_literal_protocol(CompileContext1);
711- % gfm_autolink_literal_www -> on_exit_gfm_autolink_literal_www(CompileContext1);
712- % gfm_autolink_literal_xmpp -> on_exit_gfm_autolink_literal_xmpp(CompileContext1);
708+ gfm_autolink_literal_email -> on_exit_gfm_autolink_literal_email (CompileContext1 );
709+ gfm_autolink_literal_mailto -> on_exit_gfm_autolink_literal_mailto (CompileContext1 );
710+ gfm_autolink_literal_protocol -> on_exit_gfm_autolink_literal_protocol (CompileContext1 );
711+ gfm_autolink_literal_www -> on_exit_gfm_autolink_literal_www (CompileContext1 );
712+ gfm_autolink_literal_xmpp -> on_exit_gfm_autolink_literal_xmpp (CompileContext1 );
713713 % gfm_footnote_call -> on_exit_gfm_footnote_call(CompileContext1);
714714 % gfm_footnote_definition_label_string -> on_exit_gfm_footnote_definition_label_string(CompileContext1);
715715 % gfm_footnote_definition_prefix -> on_exit_gfm_footnote_definition_prefix(CompileContext1);
@@ -1014,6 +1014,81 @@ on_exit_frontmatter(CompileContext1 = #markdown_html_compile_context{}) ->
10141014 CompileContext3 = CompileContext2 # markdown_html_compile_context {slurp_one_line_ending = true },
10151015 CompileContext3 .
10161016
1017+ % % @private
1018+ -doc """
1019+ Handle [`Exit`][Kind::Exit]:[`GfmAutolinkLiteralEmail`][Name::GfmAutolinkLiteralEmail].
1020+ """ .
1021+ -spec on_exit_gfm_autolink_literal_email (CompileContext ) -> CompileContext when
1022+ CompileContext :: markdown_html_compile_context :t ().
1023+ on_exit_gfm_autolink_literal_email (
1024+ CompileContext1 = # markdown_html_compile_context {bytes = Bytes , events = Events , index = Index }
1025+ ) ->
1026+ Position = markdown_position :from_exit_event (Events , Index ),
1027+ Slice = markdown_slice :from_position (Bytes , Position ),
1028+ SliceBytes = markdown_slice :as_binary (Slice ),
1029+ CompileContext2 = generate_autolink (CompileContext1 , {some , <<" mailto:" >>}, SliceBytes , true ),
1030+ CompileContext2 .
1031+
1032+ % % @private
1033+ -doc """
1034+ Handle [`Exit`][Kind::Exit]:[`GfmAutolinkLiteralMailto`][Name::GfmAutolinkLiteralMailto].
1035+ """ .
1036+ -spec on_exit_gfm_autolink_literal_mailto (CompileContext ) -> CompileContext when
1037+ CompileContext :: markdown_html_compile_context :t ().
1038+ on_exit_gfm_autolink_literal_mailto (
1039+ CompileContext1 = # markdown_html_compile_context {bytes = Bytes , events = Events , index = Index }
1040+ ) ->
1041+ Position = markdown_position :from_exit_event (Events , Index ),
1042+ Slice = markdown_slice :from_position (Bytes , Position ),
1043+ SliceBytes = markdown_slice :as_binary (Slice ),
1044+ CompileContext2 = generate_autolink (CompileContext1 , none , SliceBytes , true ),
1045+ CompileContext2 .
1046+
1047+ % % @private
1048+ -doc """
1049+ Handle [`Exit`][Kind::Exit]:[`GfmAutolinkLiteralProtocol`][Name::GfmAutolinkLiteralProtocol].
1050+ """ .
1051+ -spec on_exit_gfm_autolink_literal_protocol (CompileContext ) -> CompileContext when
1052+ CompileContext :: markdown_html_compile_context :t ().
1053+ on_exit_gfm_autolink_literal_protocol (
1054+ CompileContext1 = # markdown_html_compile_context {bytes = Bytes , events = Events , index = Index }
1055+ ) ->
1056+ Position = markdown_position :from_exit_event (Events , Index ),
1057+ Slice = markdown_slice :from_position (Bytes , Position ),
1058+ SliceBytes = markdown_slice :as_binary (Slice ),
1059+ CompileContext2 = generate_autolink (CompileContext1 , none , SliceBytes , true ),
1060+ CompileContext2 .
1061+
1062+ % % @private
1063+ -doc """
1064+ Handle [`Exit`][Kind::Exit]:[`GfmAutolinkLiteralWww`][Name::GfmAutolinkLiteralWww].
1065+ """ .
1066+ -spec on_exit_gfm_autolink_literal_www (CompileContext ) -> CompileContext when
1067+ CompileContext :: markdown_html_compile_context :t ().
1068+ on_exit_gfm_autolink_literal_www (
1069+ CompileContext1 = # markdown_html_compile_context {bytes = Bytes , events = Events , index = Index }
1070+ ) ->
1071+ Position = markdown_position :from_exit_event (Events , Index ),
1072+ Slice = markdown_slice :from_position (Bytes , Position ),
1073+ SliceBytes = markdown_slice :as_binary (Slice ),
1074+ CompileContext2 = generate_autolink (CompileContext1 , {some , <<" http://" >>}, SliceBytes , true ),
1075+ CompileContext2 .
1076+
1077+ % % @private
1078+ -doc """
1079+ Handle [`Exit`][Kind::Exit]:[`GfmAutolinkLiteralXmpp`][Name::GfmAutolinkLiteralXmpp].
1080+ """ .
1081+ -spec on_exit_gfm_autolink_literal_xmpp (CompileContext ) -> CompileContext when
1082+ CompileContext :: markdown_html_compile_context :t ().
1083+ on_exit_gfm_autolink_literal_xmpp (
1084+ CompileContext1 = # markdown_html_compile_context {bytes = Bytes , events = Events , index = Index }
1085+ ) ->
1086+ Position = markdown_position :from_exit_event (Events , Index ),
1087+ Slice = markdown_slice :from_position (Bytes , Position ),
1088+ SliceBytes = markdown_slice :as_binary (Slice ),
1089+ CompileContext2 = generate_autolink (CompileContext1 , none , SliceBytes , true ),
1090+ CompileContext2 .
1091+
10171092% % @private
10181093-doc """
10191094Handle [`Exit`][Kind::Exit]:[`GfmStrikethrough`][Name::GfmStrikethrough].
0 commit comments