Skip to content
This repository was 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
warnus wants to merge 2 commits into
outline:mainfrom
warnus:file-upload-s3
Open

feat: Attachment of files as block to documents using s3#624
warnus wants to merge 2 commits into
outline:mainfrom
warnus:file-upload-s3

Conversation

@warnus

@warnus warnus commented Jan 13, 2022

Copy link
Copy Markdown

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.

1 participant