Support Header Section #2

Closed
opened 2021-01-16 03:11:53 +00:00 by dylan-lom · 1 comment
dylan-lom commented 2021-01-16 03:11:53 +00:00 (Migrated from github.com)

If the file starts with /*, convert everything into head tags until */ is
reached.

e.g.

/*
* title "My Markdown Article"
* author "Dylan Lom"
* charset "utf8"
*/

## Body Here

The first alphabetical character on the line should determine the start of the
record (e.g. opening * can be ignored).

The first field should be the "name", and the last field should be the
"content". Anything inbetween should be interpreted as attributes.

The following special tags should be recognised initially:

[ ] title
[ ] charset
[ ] link

and be replaced with their corresponding HTML tags. They may have special
syntaxes, e.g. title "my title" should become <title>my title</title>.

Every other record should be replaced with meta tags, e.g. author "Dylan Lom"
should become <meta name="author" content="Dylan Lom">.

If the file starts with /*, convert everything into head tags until */ is reached. e.g. ``` /* * title "My Markdown Article" * author "Dylan Lom" * charset "utf8" */ ## Body Here ``` The first alphabetical character on the line should determine the start of the record (e.g. opening ` * ` can be ignored). The first field should be the "name", and the last field should be the "content". Anything inbetween should be interpreted as attributes. The following special tags should be recognised initially: [ ] title [ ] charset [ ] link and be replaced with their corresponding HTML tags. They may have special syntaxes, e.g. `title "my title"` should become `<title>my title</title>`. Every other record should be replaced with meta tags, e.g. `author "Dylan Lom"` should become `<meta name="author" content="Dylan Lom">`.
dylan-lom commented 2021-01-16 03:14:02 +00:00 (Migrated from github.com)

The given example would be converted into:

<head>
    <title>My Markdown Article</title>
    <meta name="author" content="Dylan Lom">
    <meta charset="utf-8">
</head>
The given example would be converted into: ``` <head> <title>My Markdown Article</title> <meta name="author" content="Dylan Lom"> <meta charset="utf-8"> </head> ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: djl/shmd#2
No description provided.