Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feat: Add Missing AsciiDoc Blockquotes to Markdown Editor #7390

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

Open
BPowell76 wants to merge 7 commits into requarks:main
base: main
Choose a base branch
Loading
from BPowell76:message-box

Conversation

Copy link

@BPowell76 BPowell76 commented Oct 16, 2024

  • Added missing "Tip" and "Caution" blockquotes to Markdown editor that are present in the AsciiDoc editor.
  • Modified some Markdown-specific blockquote styling in default style to better match the styling of AsciiDoc pages.
  • Fixed inconsistencies in AsciiDoc editor blockquote titles.

wiki-js-markdown-blockquote-PR

Copy link
Contributor

@craigreyenga craigreyenga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, the 'success' blockquote from Markdown should be ported across to AsciiDoc.

Copy link
Author

I'll look into it again. I couldn't find where the asciidoc styles were coming from. Asciidoc in general, though, doesn't natively support SUCCESS so it would need to be a custom addition.

Copy link
Author

For consistency, the 'success' blockquote from Markdown should be ported across to AsciiDoc.

I'm still checking this out, but I'm currently stumped finding out where the admonition css class is being set. Once I can figure that out I believe everything will be in parity.

Copy link
Author

I have finished working to get .md and .adoc editors in parity. One thing to note is that AsciiDoctor.js does not support inline extensions which would allow for the creation of a SUCCESS: option. To get around this a Block extension was created and the editor was modified accordingly.

When you click on the Success Blockquote option now it generates:

[SUCCESS]

There is a new file: asciidoc-extended.js in the client modules that includes the code for creating the new admonition block and it is registered as an extension where asciidoctor is invoked.

wiki-js-adoc-blockquote-update-PR

...d corners. Updated rest of admonition block styles to explicitly set the background color to transparent
Signed-off-by: Brian Powell Jr <b.powell.jr@outlook.com>
Copy link
Author

@NGPixel I know you're a busy person, but could you review this when you have a moment. I'd like to have this merged in for use in the sites I have wiki.js deployed.

Copy link

@alswikiorg alswikiorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Author

I was just thinking, since this is a feature improvement should I close this PR and recreate it for the Vega branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@NGPixel NGPixel Awaiting requested review from NGPixel

@craigreyenga craigreyenga Awaiting requested review from craigreyenga

1 more reviewer

@alswikiorg alswikiorg alswikiorg left review comments

Reviewers whose approvals may not affect merge requirements

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /