wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Feat: Add Missing AsciiDoc Blockquotes to Markdown Editor

Open BPowell76 opened this issue 1 year ago • 5 comments

  • 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

BPowell76 avatar Oct 16 '24 01:10 BPowell76

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 avatar Oct 28 '24 05:10 BPowell76

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.

BPowell76 avatar Oct 30 '24 13:10 BPowell76

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

BPowell76 avatar Nov 03 '24 16:11 BPowell76

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

BPowell76 avatar Nov 13 '24 01:11 BPowell76

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

BPowell76 avatar Nov 21 '24 18:11 BPowell76