pocketnetteam / pocketnet.gui

Decentralized social network based on the blockchain
https://pocketnet.app
Apache License 2.0
84 stars 40 forks source link

Are there plans to use Markdown to format text? #2

Open bulrush15 opened 5 years ago

bulrush15 commented 5 years ago

Markdown is the most flexible writing style I have found yet as it can be turned into almost anything like EPUB, html, and much more. Are there plans to support Markdown styling, like bold, italics, bulleted lists, and numbered lists? Quoted material with > will also be needed.

Thanks! I'm having fun so far! :)

p.s. Just write a subroutine to convert Markdown, pass in a Markdown paragraph, and return HTML. That main Markdown subroutine can call other related subsubroutines for various purposes if needed. Or maybe your tool already has a Markdown to HTML convertor. As a last resort, shell out and call Pandoc and convert the markdown to Html, or anything else, that way. Pandoc must be able to write 30-40 output types, there are a lot and the author is still working on it.

A markdown paragroup is a group of text delineated by a blank line before and after it.

bulrush15 commented 5 years ago

I found some possible editor tools you might use to implement markdown for Pocketnet.

  1. Editor. This is code you can install for an online markdown editor, it supports an auto TOC, including a dropdown box TOC. It supports commonmark and standard markdown, Github markdown (GFM), flowchart, sequence diagram, HTML entities, HTML code, Javascript, Latex, Emoji, task lists, realtime preview, and more. Last updated in 2015. Example of editor in use: https://pandao.github.io/editor.md/en.html. Github page: https://github.com/pandao/editor.md.
  2. Firepad.io. Real-time collaboration with no server code. Supports plain text (code) editing and rich text editing with images! https://firepad.io/. This is just the code. Here are sites that use this Firepad: http://socrates.io, http://nitrous.io, http://coderpad.io. See http://firepad.io for more sites that use this tool.
  3. See also this paste about online editors with markdown support: https://pastebin.com/T125kqm5
bulrush15 commented 3 years ago

Any updates on this? Will Pnet be using markdown as an option in posts and comments?