Repository navigation
Head Style Tag didn't load #1784
Bug ReportI wanted to add some style to my document, then I input this to the <head>
<!--The above is omitted-->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
<style type="text/css">
p {
text-indent: 2em;
}
</style>But it didn't make text indent. What's the matter? Why? I can't understand.
Please create a reproducible sandboxMention the docsify version in which this bug was not present (if any) |
Replies: 9 comments 8 replies
|
Oh... But here... So I have to use the 2 full-width spaces ( ,  ) to make indent. I think that it has produced by GitHub Pages, or because I'm in Chinese Mainland, then... Wait, I've put the You can look at these file and check the problems below: |
|
But I want to let the /zh-cn/ become a child folder, not main folder, the main folder is en-us. Hmm, has this caused by "fallbackLanguages", its value is: |
|
you should add it to /index.html and handle the style according to the language. |
It doesn't give attention to the How to do this? Add the Or use below? I don't want the English text indents, I only want the Chinese text indents I don't want the English text indents, I only want the Chinese text indents I don't want the English text indents, I only want the Chinese text indents <style type="text/css>
/* But this is not very good, because when I use below: */
/*
<p class="zh-cn">**内容**</p>
*/
/* It won't render the markdown text. */
p .zh-cn{
text-indent: 2em;
}
</style>So, what can I do? |
<script>
// Set html "lang" attribute based on URL
var lang = location.hash.match(/#\/(de-de|es|ru-ru|zh-cn)\//);
if (lang) {
document.documentElement.setAttribute('lang', lang[1]);
}
</script>Add css: :lang(zh-cn) #main p {
text-indent: 2em;
} |
|
Oh, I have come back. |







Add css: