WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3c5fd7f

Browse files
committed
md sample: quotes & alerts
Add multiline quote example. Add a bunch of alert samples.
1 parent 554bdd2 commit 3c5fd7f

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

doc/tests/md-features.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ With code:
9191
>
9292
> Another paragraph in quote.
9393
94+
Multiline paragraphs:
95+
96+
> Para1line1
97+
> Para1line2
98+
>
99+
> Para2line1
100+
> Para2line2
101+
94102
## Images
95103
This local image should work on github and cljdoc.
96104
@@ -256,6 +264,83 @@ And how do alerts look with some code in them?
256264
> (this "look?)))
257265
> ```
258266
267+
Since we wrote a flexmark extension to handle GitHub alerts, let's test out some scenarios.
268+
269+
These should render as a quotes because they have no content:
270+
271+
One line:
272+
> [!TIP]
273+
274+
Two line:
275+
> [!TIP]
276+
>
277+
278+
Multi-line:
279+
>
280+
> [!TIP]
281+
>
282+
>
283+
284+
These should render as alerts:
285+
286+
Content in first paragraph:
287+
288+
> [!TIP]
289+
> para1line1
290+
291+
> [!TIP]
292+
> para1line1
293+
> para1line2
294+
295+
Content in subsequent paragraph
296+
297+
> [!TIP]
298+
>
299+
> para1line1
300+
301+
> [!TIP]
302+
>
303+
> para1line1
304+
> para1line2
305+
306+
Content in subsequent paragraphs
307+
308+
> [!TIP]
309+
>
310+
> para1line1
311+
> para1line2
312+
>
313+
> para2line1
314+
> para2line2
315+
316+
Content in first and subsequent paragraphs:
317+
318+
> [!TIP]
319+
> para1line1
320+
> para1line2
321+
>
322+
> para2line1
323+
>
324+
> para3line1
325+
> para3line2
326+
327+
Spaces and empty:
328+
>
329+
>
330+
> [!TIP]
331+
>
332+
>
333+
>
334+
> para3line1
335+
> para3line2
336+
>
337+
>
338+
339+
Too many spaces before alert type means not an alert:
340+
341+
> [!TIP]
342+
> Not an alert
343+
259344
## Text Roles
260345
261346
There is no support for in CommonMark for coloring or custom styling of text.

0 commit comments

Comments
 (0)