jazzdotdev / jazzdotdev/flute

Better design for content.split_header so we can have header and body

Open
#98 1 comment 0 reactions 0 assignees View on GitHub
landmark/1 progress/1
Dominant language
Lua
Stars
17
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Actually the following is working at the moment:

```
function content.split_header (document_text)
local scl_text, body = document_text:match("---\n(.*)\n...\n(.*)")
log.debug(body)
local header = scl.to_table(scl_text)
return header, body
end
```

But I still do think this should have a nicer way to maintain this method in design.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.