| 1 | package Acme::Markdown::Embarrassing; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.006; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $VERSION = '3.2'; | |
| 8 | |||
| 9 | =pod | ||
| 10 | |||
| 11 | =encoding UTF-8 | ||
| 12 | |||
| 13 | =head1 Acme::Markdown::Embarrasing | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Acme::Markdown::Embarrassing - Embarrassing the MetaCPAN Markdown converter | ||
| 18 | |||
| 19 | =head1 SYNOPYS | ||
| 20 | |||
| 21 | This is a toy module to embarrass MetaCPAN Markdown, reindexing 3.2. | ||
| 22 | |||
| 23 | =head1 SEE ALSO | ||
| 24 | |||
| 25 | See also L<https://metacpan.org/release/CONTRA/Acme-Markdown-Embarrassing-3.2/source/README.md> | ||
| 26 | |||
| 27 | See also L<https://metacpan.org/release/CONTRA/Acme-Markdown-Embarrassing-3.2/source/MarkdownTest.md> | ||
| 28 | |||
| 29 | =head1 MARKDOWN | ||
| 30 | |||
| 31 | =begin markdown | ||
| 32 | |||
| 33 | ## IMAGES | ||
| 34 | |||
| 35 | #### Include relative image `` | ||
| 36 |  | ||
| 37 | |||
| 38 | #### Include relative image `` | ||
| 39 |  | ||
| 40 | |||
| 41 | #### Include absolute internal non versioned image `` | ||
| 42 |  | ||
| 43 | |||
| 44 | #### Include absolute internal image `` | ||
| 45 |  | ||
| 46 | |||
| 47 | #### Include absolute fastapi image `` | ||
| 48 |  | ||
| 49 | |||
| 50 | #### Include absolute external image `` | ||
| 51 |  | ||
| 52 | |||
| 53 | |||
| 54 | # Title 1 | ||
| 55 | ## Title 2 | ||
| 56 | ### Title 3 | ||
| 57 | #### Title 4 | ||
| 58 | ##### Title 5 | ||
| 59 | ###### Title 6 | ||
| 60 | |||
| 61 | Title 1 | ||
| 62 | == | ||
| 63 | Title 2 | ||
| 64 | -- | ||
| 65 | |||
| 66 | ## Usual styling | ||
| 67 | Some **BOLD** or alternate __BOLD__ text with some *italic* and alternate _italic_ | ||
| 68 | |||
| 69 | Some ***BOLD ITALIC*** or alternate ___BOLD ITALIC___ | ||
| 70 | |||
| 71 | Some ~~strikethrough~~ | ||
| 72 | |||
| 73 | ## Quote | ||
| 74 | > There Is More Than One Way To Do It | ||
| 75 | |||
| 76 | > Top level | ||
| 77 | >> Nested | ||
| 78 | |||
| 79 | > Quote with styling | ||
| 80 | > - First | ||
| 81 | > - Second | ||
| 82 | > | ||
| 83 | > Some **BOLD** | ||
| 84 | |||
| 85 | ## Lists ([#2330](https://github.com/metacpan/metacpan-web/issues/2330)) | ||
| 86 | ### Bullets (-) | ||
| 87 | - First | ||
| 88 | - Second | ||
| 89 | - Third | ||
| 90 | |||
| 91 | ### Bullets (\*) | ||
| 92 | - Foo | ||
| 93 | - Bar | ||
| 94 | - Baz | ||
| 95 | |||
| 96 | ### Bullets (+) | ||
| 97 | + Foo | ||
| 98 | + Bar | ||
| 99 | + Baz | ||
| 100 | |||
| 101 | ### Numbered list | ||
| 102 | 1. First | ||
| 103 | 2. Second | ||
| 104 | 3. Third | ||
| 105 | |||
| 106 | 1) First | ||
| 107 | 2) Second | ||
| 108 | 3) Third | ||
| 109 | |||
| 110 | |||
| 111 | ## Code | ||
| 112 | Inlined `code` or inlined ``code with `backticks` inside`` | ||
| 113 | |||
| 114 | ### Perl ([#2312](https://github.com/metacpan/metacpan-web/issues/2312)) | ||
| 115 | ```perl | ||
| 116 | #!/usr/bin/env perl | ||
| 117 | |||
| 118 | use Acme::LOLCAT; | ||
| 119 | |||
| 120 | print translate("You too can speak like a lolcat!") ."\n"; | ||
| 121 | ``` | ||
| 122 | |||
| 123 | ### Indented with spaces | ||
| 124 | #!/usr/bin/env perl | ||
| 125 | |||
| 126 | use Acme::LOLCAT; | ||
| 127 | |||
| 128 | print translate("You too can speak like a lolcat!") ."\n"; | ||
| 129 | |||
| 130 | ### Indented with tab | ||
| 131 | #!/usr/bin/env perl | ||
| 132 | |||
| 133 | use Acme::LOLCAT; | ||
| 134 | |||
| 135 | print translate("You too can speak like a lolcat!") ."\n"; | ||
| 136 | |||
| 137 | ## Images | ||
| 138 | ### PNG | ||
| 139 |  | ||
| 140 | |||
| 141 | ### SVG | ||
| 142 |  | ||
| 143 | |||
| 144 | ## Tables | ||
| 145 | |||
| 146 | | Pos | Club | Points | | ||
| 147 | |:------------|:-----------:|:-----------:| | ||
| 148 | | 1 | OM | 12 | | ||
| 149 | | 2 | St Etienne | 9 | | ||
| 150 | | 3 | OGC Nice | 3 | | ||
| 151 | |||
| 152 | ## Rules | ||
| 153 | *** | ||
| 154 | |||
| 155 | --- | ||
| 156 | |||
| 157 | ________________ | ||
| 158 | |||
| 159 | ## Links | ||
| 160 | [MetaCPAN](https://metacpan.org) or with title [MetaCPAN](https://metacpan.org "MetaCPAN") | ||
| 161 | |||
| 162 | <https://www.metacpan.org> | ||
| 163 | |||
| 164 | ## Image with link | ||
| 165 | [](https://linuxfr.org/) | ||
| 166 | |||
| 167 | ## Emoji | ||
| 168 | 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 | ||
| 169 | |||
| 170 | 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 | ||
| 171 | |||
| 172 | 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 | ||
| 173 | |||
| 174 | 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 | ||
| 175 | |||
| 176 | 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 | ||
| 177 | |||
| 178 | 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 | ||
| 179 | |||
| 180 | 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 🐪 | ||
| 181 | |||
| 182 | 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 🐺 | ||
| 183 | |||
| 184 | ## Escape | ||
| 185 | \* | ||
| 186 | |||
| 187 | \` | ||
| 188 | |||
| 189 | \- | ||
| 190 | |||
| 191 | \+ | ||
| 192 | |||
| 193 | \# | ||
| 194 | |||
| 195 | ## Html embedded | ||
| 196 | Some <strong>BOLD</strong> text. | ||
| 197 | |||
| 198 | A | ||
| 199 | <br/> | ||
| 200 | Sentence | ||
| 201 | <br/> | ||
| 202 | <br/> | ||
| 203 | On | ||
| 204 | <br/> | ||
| 205 | <br/> | ||
| 206 | <br/> | ||
| 207 | Multiple | ||
| 208 | <br/> | ||
| 209 | <br/> | ||
| 210 | <br/> | ||
| 211 | <br/> | ||
| 212 | Lines | ||
| 213 | |||
| 214 | ## Huge image | ||
| 215 |  | ||
| 216 | |||
| 217 | |||
| 218 | # Embed HTML (and IMAGES) | ||
| 219 | |||
| 220 | ## IMAGE (RELATIVE test.png) | ||
| 221 | |||
| 222 | <div style="display: flex"> | ||
| 223 | <div style="margin: 3px; flex: 1 1 50%"> | ||
| 224 | <img alt="Test" src="test.png" style="max-width: 100%"> | ||
| 225 | </div> | ||
| 226 | </div> | ||
| 227 | |||
| 228 | ## IMAGE (RELATIVE ./test.png) | ||
| 229 | |||
| 230 | <div style="display: flex"> | ||
| 231 | <div style="margin: 3px; flex: 1 1 50%"> | ||
| 232 | <img alt="Test" src="./test.png" style="max-width: 100%"> | ||
| 233 | </div> | ||
| 234 | </div> | ||
| 235 | |||
| 236 | ## IMAGE (RELATIVE ../../../test.png) | ||
| 237 | |||
| 238 | <div style="display: flex"> | ||
| 239 | <div style="margin: 3px; flex: 1 1 50%"> | ||
| 240 | <img alt="Test" src="../../../test.png" style="max-width: 100%"> | ||
| 241 | </div> | ||
| 242 | </div> | ||
| 243 | |||
| 244 | ## IMAGE (ROOT RELATIVE /test.png) | ||
| 245 | |||
| 246 | <div style="display: flex"> | ||
| 247 | <div style="margin: 3px; flex: 1 1 50%"> | ||
| 248 | <img alt="Test" src="/test.png" style="max-width: 100%"> | ||
| 249 | </div> | ||
| 250 | </div> | ||
| 251 | |||
| 252 | ## IMAGE FROM SOURCE (ABSOLUTE) | ||
| 253 | |||
| 254 | <div style="display: flex"> | ||
| 255 | <div style="margin: 3px; flex: 1 1 50%"> | ||
| 256 | <img alt="Test" src="https://metacpan.org/source/CONTRA/Acme-Markdown-Embarrassing-1.6/test.png" style="max-width: 100%""> | ||
| 257 | </div> | ||
| 258 | </div> | ||
| 259 | |||
| 260 | ## IMAGE FROM FASTAPI (ABSOLUTE) | ||
| 261 | |||
| 262 | <div style="display: flex"> | ||
| 263 | <div style="margin: 3px; flex: 1 1 50%"> | ||
| 264 | <img alt="Test" src="https://fastapi.metacpan.org/source/CONTRA/Acme-Markdown-Embarrassing-1.6/test.png" style="max-width: 100%"> | ||
| 265 | </div> | ||
| 266 | </div> | ||
| 267 | |||
| 268 | ## IMAGE FROM GITHUB (ABSOLUTE) | ||
| 269 | |||
| 270 | <div style="display: flex"> | ||
| 271 | <div style="margin: 3px; flex: 1 1 50%"> | ||
| 272 | <img alt="Test" src="https://raw.githubusercontent.com/thibaultduponchelle/Acme-Markdown-Embarrassing/master/test.png" style="max-width: 100%"> | ||
| 273 | </div> | ||
| 274 | </div> | ||
| 275 | =end markdown | ||
| 276 | |||
| 277 | =cut | ||
| 278 | |||
| 279 | 1 | 1; # End of Acme::Markdown::Embarrassing | |