-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not clear what the module should return #40
Comments
Can you provide full configuration? I can't reproduce, example from README works fine |
Hi @alexander-akait, thanks very much for your reply. My main point was that it's unclear from the docs what should be happening. Can you clarify what I should get when importing a .md module (let's say with the RemarkHTML plugin)? But my guess is that what I'm seeing is not correct, for whatever reason (wrong dependency versions? conflict with webpack ecosystem?). But if I can create a minimal reproduction of what I'm seeing, I will post — maybe won't have time until the weekend. |
@robations You should get html in your case |
You don't need |
Thanks, yes I was expecting to see html at first. What I'm seeing is more like what happens if you import a |
Expected Behavior
The examples in readme show
console.log()
but not what might be returned.This might also be a bug, but I can't tell at the moment.
Do we expect...
OR
fetch()
?Actual Behavior
Importing a markdown doc returns a path to a compiled JS file, so accessing the raw html requires a double import. Though webpack IIRC won't handle double imports (too dynamic to know what the path will be).
Code
NB There are some other webpack module rules applied (fairly standard rules for handling images, css, JS), but at the moment I can't see how/if they impact on the remark-loader behaviour.
The text was updated successfully, but these errors were encountered: