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

Add support for quote and verbatim #77

Merged
merged 6 commits into from
Oct 22, 2021
Merged

Conversation

rytswd
Copy link
Member

@rytswd rytswd commented Oct 22, 2021

Fixes #40

Added

  • [Markdown] Quote support to prepend all lines with > with a new option style: quote
  • [Markdown] Verbatim support for wrapping imported contents with "```", with a new option of style: verbatim yaml for YAML, or `wrap: yaml` for short

Fixed

  • [Markdown] Import with Exporter Marker is now supported against YAML file

Other Notes

Exporter Markers were originally meant to be used for the same file type, e.g. YAML to import another YAML. But this can be probably useful to work across file types. As Markdown was clearly the one that needed this support first, I got a fix for it, but I'll need to check other file types and ensure this pattern is supported. It would require much more refactoring, though, and thus I kept such updates minimal for this PR.

@rytswd rytswd merged commit a40cb91 into main Oct 22, 2021
@rytswd rytswd deleted the add-support-for-quote-and-verbatim branch October 22, 2021 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add support for custom wrapper
1 participant