|
94 | 94 | %% use markdown::{to_html, to_html_with_options, CompileOptions, Options}; |
95 | 95 | %% # fn main() -> Result<(), markdown::message::Message> { |
96 | 96 | %% |
97 | | - %% // `markdown-rs` is safe by default: |
| 97 | + %% // `erlang-markdown` is safe by default: |
98 | 98 | %% assert_eq!( |
99 | 99 | %% to_html("Hi, <i>venus</i>!"), |
100 | 100 | %% "<p>Hi, <i>venus</i>!</p>" |
|
148 | 148 | %% use markdown::{to_html, to_html_with_options, CompileOptions, Options}; |
149 | 149 | %% # fn main() -> Result<(), markdown::message::Message> { |
150 | 150 | %% |
151 | | - %% // `markdown-rs` is safe by default: |
| 151 | + %% // `erlang-markdown` is safe by default: |
152 | 152 | %% assert_eq!( |
153 | 153 | %% to_html("<javascript:alert(1)>"), |
154 | 154 | %% "<p><a href=\"\">javascript:alert(1)</a></p>" |
|
225 | 225 | %% Default line ending to use when compiling to HTML, for line endings not |
226 | 226 | %% in `value`. |
227 | 227 | %% |
228 | | - %% Generally, `markdown-rs` copies line endings (`\r`, `\n`, `\r\n`) in |
| 228 | + %% Generally, `erlang-markdown` copies line endings (`\r`, `\n`, `\r\n`) in |
229 | 229 | %% the markdown document over to the compiled HTML. |
230 | 230 | %% In some cases, such as `> a`, CommonMark requires that extra line |
231 | 231 | %% endings are added: `<blockquote>\n<p>a</p>\n</blockquote>`. |
|
241 | 241 | %% use markdown::{to_html, to_html_with_options, CompileOptions, LineEnding, Options}; |
242 | 242 | %% # fn main() -> Result<(), markdown::message::Message> { |
243 | 243 | %% |
244 | | - %% // `markdown-rs` uses `\n` by default: |
| 244 | + %% // `erlang-markdown` uses `\n` by default: |
245 | 245 | %% assert_eq!( |
246 | 246 | %% to_html("> a"), |
247 | 247 | %% "<blockquote>\n<p>a</p>\n</blockquote>" |
|
551 | 551 | %% use markdown::{to_html_with_options, CompileOptions, Options, ParseOptions}; |
552 | 552 | %% # fn main() -> Result<(), markdown::message::Message> { |
553 | 553 | %% |
554 | | - %% // With `allow_dangerous_html`, `markdown-rs` passes HTML through untouched: |
| 554 | + %% // With `allow_dangerous_html`, `erlang-markdown` passes HTML through untouched: |
555 | 555 | %% assert_eq!( |
556 | 556 | %% to_html_with_options( |
557 | 557 | %% "<iframe>", |
|
1079 | 1079 | %% == Examples == |
1080 | 1080 | %% |
1081 | 1081 | %% ``` |
1082 | | - %% % `markdown-rs` follows CommonMark by default: |
| 1082 | + %% % `erlang-markdown` follows CommonMark by default: |
1083 | 1083 | %% <<"<pre><code>indented code?\n</code></pre>">> = |
1084 | 1084 | %% to_html(<<" indented code?">>), |
1085 | 1085 | %% |
|
1112 | 1112 | %% == Examples == |
1113 | 1113 | %% |
1114 | 1114 | %% ``` |
1115 | | - %% % `markdown-rs` supports single tildes by default: |
| 1115 | + %% % `erlang-markdown` supports single tildes by default: |
1116 | 1116 | %% <<"<p><del>a</del></p>">> = |
1117 | 1117 | %% to_html_with_options( |
1118 | 1118 | %% <<"~a~">>, |
|
1154 | 1154 | %% == Examples == |
1155 | 1155 | %% |
1156 | 1156 | %% ``` |
1157 | | - %% % `markdown-rs` supports single dollars by default: |
| 1157 | + %% % `erlang-markdown` supports single dollars by default: |
1158 | 1158 | %% <<"<p><code class=\"language-math math-inline\">a</code></p>">> = |
1159 | 1159 | %% to_html_with_options( |
1160 | 1160 | %% <<"$a$">>, |
|
0 commit comments