or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Content types
A content type in terms of ULA is a label for a predictable, typical piece of content, with predefined interactivity and styling.
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Interactivity
At this point we have 4 pre-built types: richText, richMedia, fileCard, exercise.
Interactivity means how an element responds to user interaction.
In richText, for example, you can add a quiz, and after a user has answered the quiz, the program will show if the answer was right or wrong.
In richMedia there are phrases, and when you click on one of them a short part of a long audio or video is played.
In fileCard small files like audio and images are joined together into clickable sounded cards.
In exercise you have to read or listen to something and choose one answer from many, then you get feedback on whether you were right or not.
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Styling
Styling is another important part of content type. You can change styles of pre-built types and create new types with different styles.
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Custom types
You can create custom content types on top of those 4 pre-built ones.
For example, you can create a content type
song
on top ofrichMedia
, set a pink background for it and align text to the center. You can also create a typestory
with sky-blue background and align text to the left. Both,song
andstory
will look completely different from the defaultrichMedia
and from each other.You just need to add to your
/content/styles/contentType.js
a couple of rows:- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →It will make your content more structured and clear because now you should add these types after titles in
/content/content.md
:- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →It's easier to read, edit and translate that kind of structured text while you are working on the app. And of course, it immerses a user/student in a better learning experience after you've built the app.
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →