You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
502 B
14 lines
502 B
5 years ago
|
CODE_TYPES = ['x-c', 'html']
|
||
|
|
||
|
FILE_TYPES = {
|
||
|
'image': '<figure><img class="image" src="{}"><figcaption>{}</figcaption></figure>',
|
||
|
'pdf': (
|
||
|
'<object data="{}" class="pdf" type="application/pdf">'
|
||
|
'<embed src="{}" type="application/pdf" /></object>'
|
||
|
),
|
||
|
'text': '<a href="{}" class="text">{}</a>',
|
||
|
'video': ('<video class="video" controls>' '<source src="{}"></source></video>'),
|
||
|
'audio': ('<audio controls class="audio">' '<source src="{}"></source></audio>'),
|
||
|
}
|
||
|
|