question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In-app text and markdown publishing and editing

See original GitHub issue

Currently markdown is well supported only if you prepare it via an external editor and upload a .md file directly.

It would be much better UX if a user could:

  1. Create a new post via the existing markdown editor directly in the app
  2. Edit previous text or markdown posts directly in the app
  3. Embed other LBRY content directly in the posts (add a custom button or parsing for lbry.tv embeds)

This will likely require somewhat separate code for lbry.tv and LBRY Desktop.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
btzr-iocommented, Jun 26, 2020

“streaming_url”: “(str) url to stream the file using range requests” http://localhost:5280/stream/63004f5578b24360b3c67cffa552d07a4a334375afb7972c8beb47b835a1cec86b7208dc17addf852377e6afb78b8b81

Lbry.tv has a similar endpoint for this. https://lbry.tech/api/sdk#get

1reaction
btzr-iocommented, Jun 26, 2020

Does the API provide other file options?

Idk, I don’t think so

Alternatively, is there a standard way to write to temp file on the browser?

Yes, there are different ways to achieve this, there is a new web api specifically for this but is still experimental, you can create workspaces, folders and files etc…

You can also build a blob from a string:

new Blob(["text..."]], {type: 'text/plain'}); 

is there an API to query the claim data as a string if the type is “text”?

Yes you can just use the stream api from the lbry sdk, and fetch the stream data

Idk where are docs of the stream api…

https://github.com/lbryio/lbry-sdk/issues/1634

Read more comments on GitHub >

github_iconTop Results From Across the Web

Byword - Markdown text editor app for Mac, iPhone and iPad.
Byword is simple and efficient text editor for Markdown. ... Preview your documents in app, export to HTML, PDF, rich text, or publish...
Read more >
iTextEditors - iPhone and iPad text/code editors and writing ...
Comparison chart of iPad and iPhone (iOS) text editing applications. ... If you're editing Markdown, there's a great Mac app called Marked ...
Read more >
The Best Markdown Editors for iOS - SitePoint
Editorial is a powerful text editor for iOS that offers excellent Markdown support. It also supports Fountain, a markup language for ...
Read more >
7 Minimalist Markdown Writing Apps for iPad - Paper app
Powerful, beautiful Markdown editor for iOS. 1Writer combines all the basic text editing features you would expect with all the advanced ...
Read more >
TextSer on the Mac App Store
TextSer is tool for Markdown writers. It enables you to write markdown anywhere and turn it into styled text or publish it as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found