Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Export Markdown and Asciidoc to HTML files #268

Open
brianhuster opened this issue Jan 12, 2025 · 0 comments
Open

Feature : Export Markdown and Asciidoc to HTML files #268

brianhuster opened this issue Jan 12, 2025 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@brianhuster
Copy link
Owner

brianhuster commented Jan 12, 2025

Why?

  • In order to render Markdown (Md) and Asciidoc (Adoc) in browser, the plugin has to convert those Md and Adoc code to HTML.
  • Some people want to convert these kinds of document to HTML, that's why things like Pandoc exist

=> This plugin can support exporting Md and Adoc to HTML files.

Implementation

Difficulty

  • Right now, Md and Adoc are parsed in browser
    => Nvim can send a Websocket (WS) request to a browser, and then wait for respond_

Interface

- Possibly creating a new subcommand (export or export2html)
- Question: Should it write to a file directly (specified by users) or just print it in a new buffer and users will save it themselves?

  • Provide a button in the preview page to export HTML

Other questions

- Is this feature worth implementing? Browsers already allow users to copy HTML of a web page using the DevTools

  • Should it only generate plain HTML or HTML + CSS?
@brianhuster brianhuster modified the milestone: TODO Jan 12, 2025
@brianhuster brianhuster added the enhancement New feature or request label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant