-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update for new alerts #47
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,45 +14,44 @@ Here are the syntaxes of the Alerts for Keyman websites. There are 5 types of GF | |
|
||
## Working with Alerts | ||
|
||
For every Alert that is used, there should be a gap in between each Alert, then a blank comment. After that, the next Alerts can be used. | ||
The Five Alerts (Note, Tips, Important, Caution, and Warning) are recognized inside the `[! ]`. This should be able to support multiple lines as long as it is continuing from the previous alerts. Please find the examples below. | ||
|
||
* One Alert | ||
|
||
```md | ||
> [!NOTE] Keyman Facts. | ||
> [!NOTE] | ||
> Keyman Facts. | ||
|
||
``` | ||
|
||
* More than one | ||
|
||
```md | ||
> [!TIPS] Keyboard layouts are defined with a clear and easy to understand keyboard grammar. | ||
// Always leave a line break. | ||
<!-- Must Include a blank comment between each Alerts --> | ||
> [!IMPORTANT] Keyman originally created in 1993 to type Lao on Windows. | ||
|
||
<!-- --> | ||
> [!CAUTION] Keyboard layouts are distributed through an open catalog to all major desktop and mobile platforms. | ||
|
||
<!-- Last comment --> | ||
> [!WARNING] This is the last GFMAlerts. | ||
> [!TIPS] | ||
> Keyboard layouts are defined with a clear and easy to understand keyboard grammar. | ||
|
||
> [!IMPORTANT] | ||
> Keyman originally created in 1993 to type Lao on Windows. | ||
> Support new lines. | ||
|
||
> [!CAUTION] | ||
> Keyboard layouts are distributed through an open catalog to all major desktop and mobile platforms. | ||
> [!WARNING] | ||
> This is the last GFMAlerts. | ||
|
||
``` | ||
|
||
## Limitation | ||
|
||
The Alerts can't recognize new lines, HTML tags, nor handle two lines or more. | ||
The Alerts can't recognize the inline content and HTML tags. Please stick to the rules/syntax. | ||
|
||
```md | ||
> [!WARNING] DO NOT do this. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the "DO NOT do this" examples, maybe have examples of what happens with inline content and HTML tags. (and a comment |
||
> Second line // this will cause a 500 Error | ||
|
||
<!-- --> | ||
> [!WARNING] DO NOT do this. | ||
Second line // this will cause a 500 Error | ||
Second line | ||
|
||
<!-- --> | ||
> [!WARNING] DO NOT do this. | ||
Second line // this will cause a 500 Error | ||
Second line | ||
|
||
``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On #46, what happens with this example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output is:
Markdown: