Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

feat: Attachment of files as block to documents using s3 #624

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

warnus
Copy link

@warnus warnus commented Jan 13, 2022

I added file upload feature. (outline commit is outline/outline#2936)

It is almost same with what chanchadsahi, FeralMib did(#280 , #603 ).

The difference is that it is made form of a notice block.

And, I need some help. There are bad code here.

parseMarkdown() { return { block: "container_file", getAttrs: token => { const file_regex = /\[(?<alt>[^]*?)\]\((?<filename>[^]*?)\)/g; const result = file_regex.exec(token.info); return { src: result? result[2] : null, alt: result? result[1] : null, }; }, }; }

I want to place src(file url) and title variable in attributes but, I don't know how to do it.

Can anyone help this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant