| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Contract\Console\Format; |
| 4: | |
| 5: | /** |
| 6: | * @api |
| 7: | */ |
| 8: | interface HasTag |
| 9: | { |
| 10: | /** |
| 11: | * Heading |
| 12: | * |
| 13: | * - `___` text `___` |
| 14: | * - `***` text `***` |
| 15: | * - `##` text `##` (closing delimiter optional) |
| 16: | */ |
| 17: | public const TAG_HEADING = 0; |
| 18: | |
| 19: | /** |
| 20: | * Bold, or strong importance |
| 21: | * |
| 22: | * - `__` text `__` |
| 23: | * - `**` text `**` |
| 24: | */ |
| 25: | public const TAG_BOLD = 1; |
| 26: | |
| 27: | /** |
| 28: | * Italic, or emphasis |
| 29: | * |
| 30: | * - `_` text `_` |
| 31: | * - `*` text `*` |
| 32: | */ |
| 33: | public const TAG_ITALIC = 2; |
| 34: | |
| 35: | /** |
| 36: | * Underline, or emphasis |
| 37: | * |
| 38: | * `<` text `>` |
| 39: | */ |
| 40: | public const TAG_UNDERLINE = 3; |
| 41: | |
| 42: | /** |
| 43: | * Low priority |
| 44: | * |
| 45: | * `~~` text `~~` |
| 46: | */ |
| 47: | public const TAG_LOW_PRIORITY = 4; |
| 48: | |
| 49: | /** |
| 50: | * Inline code span |
| 51: | * |
| 52: | * `` ` `` text `` ` `` |
| 53: | */ |
| 54: | public const TAG_CODE_SPAN = 5; |
| 55: | |
| 56: | /** |
| 57: | * Fenced code block |
| 58: | * |
| 59: | * ` ``` `<br> |
| 60: | * text<br> |
| 61: | * ` ``` ` |
| 62: | */ |
| 63: | public const TAG_CODE_BLOCK = 6; |
| 64: | |
| 65: | /** |
| 66: | * Header in unified diff |
| 67: | */ |
| 68: | public const TAG_DIFF_HEADER = 7; |
| 69: | |
| 70: | /** |
| 71: | * Line numbers in unified diff |
| 72: | */ |
| 73: | public const TAG_DIFF_RANGE = 8; |
| 74: | |
| 75: | /** |
| 76: | * Additional line in unified diff |
| 77: | */ |
| 78: | public const TAG_DIFF_ADDITION = 9; |
| 79: | |
| 80: | /** |
| 81: | * Removed line in unified diff |
| 82: | */ |
| 83: | public const TAG_DIFF_REMOVAL = 10; |
| 84: | } |
| 85: |