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

Feat: Add Missing AsciiDoc Blockquotes to Markdown Editor #7390

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

BPowell76
Copy link

  • 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

@auto-assign auto-assign bot requested a review from NGPixel October 16, 2024 01:19
Copy link

@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.

@BPowell76
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.

@BPowell76
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.

…or.js currently doesn't support inline extensions on paragraph content
@BPowell76
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 <[email protected]>
@BPowell76
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.

👍

@BPowell76
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants