I work as an Expert Distributed IIoT Software Solutions and have a passion for Azure, .NET and Angular.
- 🌍 I'm based in Germany
- 🖥️ See my portfolio at fzankl.de
- ✉️ You can contact me at [email protected]
GitHub Stats
docsify plugin to convert blockquotes into beautiful and configurable alerts using preconfigured or own styles and alert types.
License: MIT License
I work as an Expert Distributed IIoT Software Solutions and have a passion for Azure, .NET and Angular.
GitHub Stats
I really like the boxes :) But in dark mode they stay white.
Regards,
Tim
I want use chinese label ,I rewrote here
var l = (t || "").match(new RegExp(e + ":(([\\w\\s\\u4e00-\\u9fa5]*))"));
/<\s*blockquote[^>]*>(?:<p>|[\S\n]*)?\[!(\w*)((?:\|[\w*:[\u4e00-\u9fa5\w\s]+)*?)\]([\s\S]*?)(?:<\/p>)?<\s*\/\s*blockquote>/g,
and in README.md Have an error
iconVisibility:false
First of all, I really like this plugin,but i have something wrong.
my docsify loading slowly, the console message is 【fontawesome】fail to load
i had try to download fontawesome, and import relevant document in index.html
after doing this, fontawesome can work, but docsify still loading slowly due to the fail request
Is there a way to solve it, i really really love this plugin~~
Looks like using unpgk.com as CDN is broken:
Include unpkg.com CDN snippet in the index.html:
<script src="https://unpkg.com/docsify-plugin-flexible-alerts"></script>
No 404 in console.
Using jsdelivr.com works without errors:
<script src="https://cdn.jsdelivr.net/npm/docsify-plugin-flexible-alerts@latest/dist/docsify-plugin-flexible-alerts.min.js"></script>
unpkg.com produced this error in the Google Chrome Console:
DevTools failed to load SourceMap: Could not load content for https://unpkg.com/docsify-plugin-flexible-alerts.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
I'm not familiar with how unpkg.com works - what I've noticed is, that https://unpkg.com/docsify-plugin-flexible-alerts
would work:
curl -I https://unpkg.com/docsify-plugin-flexible-alerts.min.js.map
HTTP/2 404
date: Tue, 09 Feb 2021 06:00:03 GMT
curl -I https://unpkg.com/docsify-plugin-flexible-alerts
HTTP/2 302
date: Tue, 09 Feb 2021 05:59:41 GMT
I think there must be some swizzle to enable font-awesome again after the dependency removal?
This custom label will not resolve correctly:
> [!TIP|label:An example of pom.xml]
> This is the description.
As you could see, if you put a dot in label, the whole message box will instantly break.
This really annoying me, please fix this!
Instead of
> [!ATTENTION]
> An alert of type 'note' using global style 'callout'.
one must write
> [!DANGER]
> An alert of type 'note' using global style 'callout'.
I suggest mentioning this in readme file or changing the example
I really like the style of your plugin but I am not able to make it to work.
Maybe you can help me to understand what I am doing wrong.
Here the files.
<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
'flexible-alerts': {
style: 'flat'
}
};
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<!-- Latest -->
<script src="https://unpkg.com/docsify-plugin-flexible-alerts"></script>
</body>
</html>
<!-- README.md -->
Test
==============
[!NOTE]
An alert of type 'note' using global style 'callout'.
I'm doing the step-by-step guide but I cannot see any change.
to reproduce it, please see zivl/sentry-testkit#35
So I've been trying to use a custom icon, and I cant get it to render at all.
So for example, this is my alert heading where I'm trying to use the microchip icon from fa.
> [!NOTE|label:Specs|icon:fas fa-microchip]
I've tried it with icon:fas-fa-microchip
as well as icon:fa-microchip
and neither seems to work. I then thought it was maybe this specific Icon, so I tried many other ones from the site as well as the example listed in the README ("fa fa-comments") and nothign worked.
I double checked the source of the docsify-plugin-flexible-alerts
.js file I'm using, and it does seem to be successfully pulling in the Font Awesome 5.6.3.
Am I missing something about how to use custom Icons, or is there really a bug here?
Thanks guys
Nico
GitHub's markdown now supports [!Note]
, [!Important]
, and [!Warning]
, but not [!Tip]
or [!Attention]
.
Currently docsify-plugin-flexible-alerts
is missing [!Important]
. Would be nice to get that one, to maximize compatibility with GitHub.
Great plugin btw!
Hi,
I have just noticed that, at least using themeable, the Tip callout has more padding and two icons. Please see the screenshot below.
Temporarily solving the issue is as simple as adding:
.markdown-section .tip:before {
content: unset;
}
.markdown-section .tip {
padding: .75rem 1.25rem;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.