Description of the problem
I haven’t updated obsidian for a long time and after updating from version 0.11.* to 0.13.19 a very important function for me disappeared, and I don’t know how to get it back.
Between ``` and ``` you can write a multi-line block of code and previously this block had horizontal scrolling. Now all lines are wrapped. It’s terribly uncomfortable
Here’s what it looks like without scrolling
by turning off the “line wrapping” setting, I can show how it looked like with scrolling. But this is not what I want, because scrolling appears for the entire text, and not separately for a block of code.
Scroll all text (not just the block of code)
While I was writing this post, I decided to check how the code will be displayed here on this forum, and it is displayed exactly the way I want it to be displayed in obsidian
@Service
public class UserService implements UserDetailsService {
private final UserRepository userRepository;
public UserService(UserRepository userRepository) {
this.userRepository = userRepository;
}
@Override
@Transactional(readOnly = true)
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
return userRepository.findByName(username)
.map(user -> new User(
user.getName(),
user.getPassword(),
user.getRoles().stream().map(role -> new SimpleGrantedAuthority(role.getName())).collect(Collectors.toSet())
)
).orElseThrow(() -> new UsernameNotFoundException("Пользователь не найден"));
}
}
What I was trying to do
- I didn’t find the right item in the settings. Maybe it can be done with css snippet?
- I tried to change the editor to legacy, but it did not help
- I’m even ready to roll back to the old version in order to return the functionality I need. But I did not find where to find the old release, I will be glad if you tell me
P.S. I use obsidian to take notes on programming lectures and I’m terribly uncomfortable working with it after the update. Am I the only one using this feature? Who even guessed to disable scrolling in a block of code? I resent.
P.S.S. Sorry, this is a duplicate of my previous post, but there was too little information