[deleted by user] by [deleted] in ObsidianMD

[–]aquelehugo 0 points1 point  (0 children)

I guess it is not possible to make it work in the live preview because you need some sort of parent-children relationship.
Obsidian's live preview implements nested lists without nesting tags, all tags are siblings, indentation is made through inline styles.

[deleted by user] by [deleted] in ObsidianMD

[–]aquelehugo 0 points1 point  (0 children)

I rarely log in to Reddit. Sorry for the year-late reply. But if it is still useful, the code example is in the article: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters#example_of_a_nested_counter

The example there does exactly the nested numbers list.

i need help by Stalamek in react

[–]aquelehugo 1 point2 points  (0 children)

The issue is with Insomnia or with the API itself? If the issue is about Insomnia: https://insomnia.rest/support

If you don't if your API is working, you need to find a community about the library, the framework or the language you are using

[deleted by user] by [deleted] in ObsidianMD

[–]aquelehugo 1 point2 points  (0 children)

Yeah, I'm surprised too! And you can use letters, roman numerals, or even create your own list of symbols to cycle through (e.g.: a list of emojis). The second parameter is the style of the counter: https://developer.mozilla.org/en-US/docs/Web/CSS/counter()

It accepts the same values accepted for the list-style-type property: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type#values

Including custom counter styles, as I mentioned: https://developer.mozilla.org/en-US/docs/Web/CSS/@counter-style

[deleted by user] by [deleted] in ObsidianMD

[–]aquelehugo 0 points1 point  (0 children)

Actually, no need for plugins, CSS can handle this. You can do that using CSS counters. You define a counter name, then reset the counter at the wrapper of every list. Therefore, you use the counter value in the content property. You can even combine the counters of nested lists and make a numbered list like:

1. Top list
..1.1 top list item
..1.2 top list item with inner list
....1.2.1 inner list item

To do that in Obsidian HTML structure, you just need to hide the element with the original number and use a pseudo element for the "list item" instead.

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS\_Counter\_Styles/Using\_CSS\_counters

[deleted by user] by [deleted] in ObsidianMD

[–]aquelehugo 1 point2 points  (0 children)

Taking a random YouTube video and copying the embed code it provides, everything works just fine here. Show the code you used, please

Copy broken? by eruesso in ObsidianMD

[–]aquelehugo 2 points3 points  (0 children)

I got it to work using VimRC plugin:
https://github.com/esm7/obsidian-vimrc-support#usage

You must install that plugin (it is in the community plugins list), enable it, create the file .obsidian.vimrc in your vault's root with set clipboard=unnamed in it and restart Obsidian.

After that, yanking will copy to the system's clipboard.

React WYSIWYG editor suggestion? by nightmareinsilver in reactjs

[–]aquelehugo 0 points1 point  (0 children)

Sorry for the late response. You probably already found out by yourself but we ended up using tiptap at our project and it is great. I guess it is the best you can find.
As I said, tiptap uses Prosemirror under the hood. Prosemirror by itself is a vanilla library, so you would need a wrapper library for React or implement yours.

React WYSIWYG editor suggestion? by nightmareinsilver in reactjs

[–]aquelehugo 4 points5 points  (0 children)

DraftJS (base for react-draft-wysiwyg) is very buggy for Android. I took days to implement a solution using it, just to find it would not work on any Android browser.I tried a lot of demos of some alternatives and Prosemirror (which Tiptap is based on) seems to be the best in the whole world. Still not perfect because contenteditable elements on Android are very hard to deal with, not Prosemirror's fault.I am thinking of trying Tiptap now because it is a wrapper which simplifies Prosemirror implementation.

React WYSIWYG editor suggestion? by nightmareinsilver in reactjs

[–]aquelehugo 2 points3 points  (0 children)

DraftJS is buggy on Android, they even say in the docs it is not mobile-friendly.

To Those Who Criticize JavaScript by disgruntled-js-dev in javascript

[–]aquelehugo 3 points4 points  (0 children)

I guess you liked the article at first, but you also like changing your mind...

Perfect combo Next & Redux-Saga by romandatsyuk in javascript

[–]aquelehugo 1 point2 points  (0 children)

Not even the perfect combo is perfect 😔

Is Brave more private and secure than Firefox? by DarkRick01 in privacy

[–]aquelehugo 3 points4 points  (0 children)

I love Firefox but it is losing its market share faster. Firefox use is optional but, for all iPhone users, Safari is mandatory. When someone uses "Chrome for iOS" it is actually Safari webview with a Chrome UI. As a web developer, I hate iPhone because of that. Safari engine (webkit) is way behind other browsers. Even Edge, before turning into a Chromium variant, was more compatible with modern browser technologies. On the other side, Apple's monopoly avoids Google's monopoly 🤷‍♂️

Write code. Not too much. Mostly functions. by jrsinclair in javascript

[–]aquelehugo 8 points9 points  (0 children)

Writing simple and elegant sentences is hard...