Code formatting doesn't really work when used inside lists.
Exporting the the text and rendering showing it somewhere, which does support it.
This is part of the output from the file:
Check your Sass loader configuration:
Ensure that you have configured sass-loader
, css-loader
, and style-loader
(or mini-css-extract-plugin
for production) correctly in your Webpack config file.
Example configuration:
module.exports = {
// ...
module: {
rules: [
{
test: /\.scss$/,
use: [
'style-loader', // or MiniCssExtractPlugin.loader for production
'css-loader',
'sass-loader'
]
}
]
}
// ...
};
Include node_modules
in your styles:
If you're trying to import a stylesheet from a package within node_modules
, make sure the import path is correct. For example:
@import '~package-name/path/to/style.scss';
The tilde (~
) tells Webpack to look in node_modules
.
I'd expect it to render as code, and something one could copy. E.g. Discord does it correctly.
And so does kagifeedback it seems.