I am fairly new to Obsidian and have run into an issue that I can't resolve:
When in Edit-Mode the code I put into my note gets looks normal and how I formatted it to look like, but as soon as I switch into Read-Mode, the formatting is all over the place.
(See picture below: left is edit-mode and right is read-mode)
This only happens in this instance (so far), all my other code blocks get displayed fine. It is react code marked with JFX.
I have tried importing the code again and reformatting it by hand but get the same result.
Also I have searched for code-format plugins.
I have found the answer:
It was the Theme I had selected (Everforest) that messed the code-formatting up.
Related
I am building a website with an implemented forum using Xobor. I want to make a button in the toolbar of the Textwindow that can convert Latex to html. Something like [Latex] \sqrt{a^2+b^2} [/Latex] would be great. Alternativly it can also be a button that creates a popup window, where Latex code can be written. Something like this:
Here you can click on the Button fx and a new window pops up, where you can enter latex code, which is then converted
I already found converters like Mathjax and Katex but I don't think, that they do what I need, because these tools seem to work only for the website text itself, but not for the forum posts.
I honestly don't know much about html, so maybe I am mistaken (I have a friend that will help me implement these things as soon as I find a tool that is fit to do what we need).
I can create the button itself like this (picture below), but obviously it doesn't convert anything yet.
So basically what I am looking for, are some lines of Code that I can put in that textbox shown in the picture above, which create a button in the toolbox, to be able to write formulas and other latex math stuff in my forum.
I really hope that this makes sense.
Thanks in advance!
After installing katex in my Angular project (npm install ng-katex --save
) I use it like:
Typescript:
var equaciones = [' H = \\sum_{i=1}^{m} p_{i} log_{2} (p_{i})']
Html:
<ng-katex [equation]="equaciones[0]"></ng-katex>
Result:
You can see an example of the result here: web_example
This must be the most frustrating thing about working with Angular.
Why does Angular NOT tell you what HTML page there is a render error in? It just defaults to the route page and tells you nothing.
This time (Luckily) I know there's some random error on SomePage.html, because if I comment out the page, everything works fine, but for those times that I don't know what page the error is in, its TOTAL CHAOS of me commenting out random pages trying to find the needle in my haystack.
Why does this happen and is there a way to get more info out of angular!?
Just look at the nice and Clean Console window, not telling me anything. So useful. So great.
Edit: And I finally found the Error, it was literally just not having a doulbe '=' sign and instead I had 1.
*ngIf="someType = 'user'"
instead of
*ngIf="someType == 'user'"
How Dumb is this?
Okay so I found a way. Should probably have thought about this before.
Just run the debugger and you'll get exactly what the problem is.
I am facing a behavior that I really don't understand.
If you go on the webpage: https://www.edel-optics.fr/Lunettes-de-soleil.html#ful_iPageNumber=1 and inspect the code you will realize that it's the same html content as on https://www.edel-optics.fr/Lunettes-de-soleil.html#ful_iPageNumber=7
=> to test it, try to search "ERIKA - 710/T5" on both source codes and you will find it (but you should only find on the ful_iPageNumber=1).
Why is it behaving like this ?
Secondary question: how to I get the real content of https://www.edel-optics.fr/Lunettes-de-soleil.html#ful_iPageNumber=7 ?
Thank you for your help
John
Problem
You have explained that when you perform a search, you get the same results as with your pagination (page 1)
Issue
You are not getting the value your searching for placed into the URL
https://www.edel-optics.fr/Recherche.html?time=1519871844737#query=
the #query is = to nothing
You would be needing something like:
https://www.edel-optics.fr/Recherche.html?time=1519871844737#query=ERIKA%20-%20710/T5
Without seing your code its hard to say where the issue lays. it could well be that the search box is not inside the Form or it could be that the submit button is on another form to the search box, or maybe an issue with backend scripts not grabbing the get values as a result of case differences in the value name.
Without seing your script its hard to diagnose
Ok I found a solution to solve this strange problem, replace the # in the URL with a ? and you will have the actual html content (corresponding to the display)...
I'm using shopify and i'm got some trouble with my online store.
I wanted to set up a french store and replace in my cart "check out" by "commander" and "remove" by "retirer".
I went to "theme.liquid" and changed the code.
Unfortunately, it doesn't change anything, at least i don't get what i want. As you can see on the screenshot below, the "check out" and the "remove" are still showing up. They are eventually replace by "commander" and "retirer" as i wanted if i refresh the page and only if i do so. How can i modify the code so they are definitely replaced by the new values?
Thanks for helping
Regards
You should edit cart.liquid instead of theme.liquid
I am getting random quotes in my HTML (see image below), and I can't for the life of me figure out how to get rid of them. I have traced it right back to my model and there are now quotes there. I have also compressed all my code and there are still quotes.
Any one had this bug???
Here's my PHP code
<ul><?php foreach ($account_media as $value) : ?><li class="span2"></li><?php endforeach; ?></ul>
I am using CodeIgniter
UPDATE: ok this is from a while ago but thought i would update you all with my solution. DO NOT COPY AND PASTE FROM JSFIDDLE really hard to debug (paste code into text editor save as plain text and then delete the old code and replace with plain text version)
Why are you using Inspect Element instead of View Source? What does View Source show?
Quotes might appear as an indication for empty in element inspection. Or in your case, it might show that <li> tags are non-blocks and are separated.
And please, people, read/write it right, I'm so sick of seeing ignitOrs. It's CodeIgnit E r. And I don't point it out just because I'm some correct terminology freak, but because it makes your questions be parsed incorrectly by search engines.
The space between <li> elements is a css issue, refer to this article: Remove Spacing between li
Chrome does this normally. It is nothing to be worried about.
View the source in the future for an absolute rendering of your HTML instead of inspecting the elements.
See screenshot below.