Comments (4)
Ok I spent some time to reproduce this case.
I'm happy that most of the plugin works. :)
I'm on vacation at the moment, I will investigate this bug next week. ^^
from remark-attr.
Checking a bit further, I could get to the point where the token is called and the returned 'eaten' data seems correct:
{
type: 'image',
title: null,
url: '/img/Logo_Cyan_flat.png',
alt: 'alt',
position: Position {
start: { line: 5, column: 1, offset: 32 },
end: { line: 5, column: 45, offset: 76 },
indent: []
},
data: { hProperties: { height: '50' } }
}
This is with a default docusaurus install and just this last line added to docusaurus.config.js:
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/edit/master/website/',
remarkPlugins: [require('remark-attr')],
from remark-attr.
Ok, it's exactly what I tried.
If you manage to get the 'eaten' data and that seems correct then the problem doesn't come from remark-attr.
Need more investigation.
Thank you for you implication.
from remark-attr.
That's good to know, thanks. I could try to reach out at Docusaurus to investigate further but it's outside my skills at the moment. If you have anything that could help point in the right direction, that could help.
I integrated Tailwind CSS with Docusarus and remark-attr would be great to stick to markdown as much as possible while still having much more functionalities by tagging lists or paragraphs to have various meanings like figure or table caption, check mark lists, tutorial step lists, etc. I would like to look into lists after but I'm afraid that if tags don't get through, more problems might appear.
from remark-attr.
Related Issues (18)
- Fenced code? HOT 13
- Support attributes in the same line as an ATX heading? HOT 5
- Support spans with attributes? HOT 1
- Support for custom data attributes HOT 5
- Stop looking for attrs in the fenced code HOT 3
- Support for linkReference HOT 4
- Are image elements supported? HOT 8
- Support angle-bracket links HOT 2
- Remove undefined values from hProperties HOT 1
- remark@next (13) HOT 10
- ATX-style cannot specify attributes if the header has inline syntax HOT 1
- There is a bug HOT 4
- 'Missing parser to attach `remark-attr` [link] (to) HOT 3
- key/class/id support HOT 2
- classes? HOT 1
- [email protected] npm package missing dist/index.js file HOT 2
- Attribute for <p> / paragraph? HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remark-attr.