peterpeterparker / daviddalbusco.com Goto Github PK
View Code? Open in Web Editor NEWFreelance Web Developer
Home Page: https://daviddalbusco.com
License: MIT License
Freelance Web Developer
Home Page: https://daviddalbusco.com
License: MIT License
According context with "web developer" or no mention. Don't put in front "Java".
Regarding recent years, I specialized my self in web development with frontend technologies.
Gatsby through GraphQL provide such metric
http://localhost:8000/__graphql
query MyQuery {
allMarkdownRemark {
edges {
node {
timeToRead
}
}
}
}
hi David,
Thank you for the article, I was troubleshooting some Rollup + TS code of mine and stumbled upon your article (which helped, thank you) and noticed two things there:
There are raw invisible characters in the markdown. For example, in https://github.com/peterpeterparker/daviddalbusco.com/blob/master/src/blog/sometimes-you-just-need-a-dumb-library.md there is a BACKSPACE, \u8
, visible even on GitHub GUI:
If you wonder how am I able to identify culprits, I paste code into https://detergent.io of mine, it shows invisibles as red clickable bullets (under scenes that's Code Mirror doing the heavy lifting, I set a regex in its config to catch all characters that trim to zero length).
In theory, you could find-and-replace on all blog post markdown files with a regex. Long-term, a plugin in your code editor to highlight invisibles would help too, for example, VSCode's Highlight Bad Chars, https://marketplace.visualstudio.com/items?itemName=wengerk.highlight-bad-chars or Atom's https://atom.io/packages/highlight-bad-chars or similar, whatever code editor you use.
There is also more serious problem with how your Gatsby setup renders code blocks into HTML. The same article, https://github.com/peterpeterparker/daviddalbusco.com/blob/master/src/blog/sometimes-you-just-need-a-dumb-library.md is rendered with \u200b
, very visible when copy-pasted into Detergent:
The \u200b
don't exist in the markdown source, Gatsby is adding them!
Rollup freaks out when I copy paste the code and errors until invisibles are removed:
So the code examples do work but with "a catch". My Gatsby is limited and my own projects use Eleventy so you'll have to find the exact cause and solution yourself.
PS. There's also good invisible character inspector web app, https://apps.timwhitlock.info/unicode/inspect/hex/1F1EC/1F1E7
All the best and greetings from UK!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.